fix(core): update
This commit is contained in:
		| @@ -90,7 +90,7 @@ export class DomTools { | ||||
|   }); // TODO: switch to scroller class | ||||
|   public themeManager = new ThemeManager(this); | ||||
|  | ||||
|   private actionSetVirtualViewport = this.domToolsStatePart.createAction<TViewport>( | ||||
|   /* private actionSetVirtualViewport = this.domToolsStatePart.createAction<TViewport>( | ||||
|     async (statePart, payload) => { | ||||
|       const currentState = statePart.getState(); | ||||
|       currentState.virtualViewport = payload; | ||||
| @@ -98,6 +98,10 @@ export class DomTools { | ||||
|     } | ||||
|   ); | ||||
|  | ||||
|   public setVirtualViewport(environmentArg: TViewport) { | ||||
|     this.domToolsStatePart.dispatchAction(this.actionSetVirtualViewport, environmentArg); | ||||
|   } */ | ||||
|  | ||||
|   public domToolsReady = plugins.smartpromise.defer(); | ||||
|   public domReady = plugins.smartpromise.defer(); | ||||
|   public globalStylesReady = plugins.smartpromise.defer(); | ||||
| @@ -148,9 +152,7 @@ export class DomTools { | ||||
|     document.head.append(cssTag); | ||||
|   } | ||||
|  | ||||
|   public setVirtualViewport(environmentArg: TViewport) { | ||||
|     this.domToolsStatePart.dispatchAction(this.actionSetVirtualViewport, environmentArg); | ||||
|   } | ||||
|    | ||||
|  | ||||
|   public async setWebsiteInfo(optionsArg: plugins.websetup.IWebSetupConstructorOptions) { | ||||
|     await this.websetup.setup(optionsArg); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user