fix(core): update

This commit is contained in:
2020-11-04 18:01:04 +00:00
parent 49ca240237
commit 7a0d767e9d
14 changed files with 2112 additions and 1665 deletions

View File

@@ -0,0 +1,13 @@
import { Tag } from './websetup.classes.tag';
export class LinkTag extends Tag {
constructor(relArg: string, hrefArg: string) {
super();
const linkElement = !!document.querySelector("link[rel='canonical']")
? document.querySelector("link[rel='canonical']")
: document.createElement('link');
linkElement.setAttribute('rel', relArg);
linkElement.setAttribute('href', hrefArg);
this.elementRef = linkElement;
}
}