fix(core): update

This commit is contained in:
2020-11-05 17:56:35 +00:00
parent 782c9cd740
commit a7fca4e0c1
4 changed files with 24 additions and 9 deletions

View File

@@ -11,7 +11,17 @@ export type TLevelState = 'enabled' | 'disabled';
export class TagLevel {
public tagManagerRef: TagManager;
public title: string;
private titleStore: string;
public set title(titleArg: string) {
this.titleStore = titleArg;
if (this.state === 'enabled') {
document.title = this.titleStore;
}
}
public get title() {
return this.titleStore;
}
public type: TBaseLevelType;
public tags: Tag[] = [];