fix(core): update

This commit is contained in:
2020-11-05 18:08:42 +00:00
parent 22eeb7809b
commit 317bc63bc7
3 changed files with 10 additions and 6 deletions

View File

@ -64,7 +64,11 @@ export class DomTools {
bodyElement: null,
};
public websetup: WebSetup;
public websetup: WebSetup = new WebSetup({
metaObject: {
title: 'loading...'
}
});
public smartstate = new plugins.smartstate.Smartstate();
public domToolsStatePart = this.smartstate.getStatePart<IDomToolsState>('domtools', {
@ -145,7 +149,7 @@ export class DomTools {
}
public async setWebsiteInfo(optionsArg: plugins.websetup.IWebSetupConstructorOptions) {
this.websetup = new plugins.websetup.WebSetup(optionsArg);
this.websetup.setup(optionsArg);
await this.websetup.readyPromise;
}
}