diff --git a/app/src/asset/index.ts b/app/src/asset/index.ts index ebc9b5580..ffc27bdf6 100644 --- a/app/src/asset/index.ts +++ b/app/src/asset/index.ts @@ -2,8 +2,10 @@ import {Model} from "../layout/Model"; import {Tab} from "../layout/Tab"; import {Constants} from "../constants"; import {setPanelFocus} from "../layout/util"; -/// #if !MOBILE +/// #if !BROWSER import {setModelsHash} from "../window/setHeader"; +/// #endif +/// #if !MOBILE // @ts-ignore import {webViewerLoad} from "./pdf/viewer"; // @ts-ignore @@ -498,7 +500,9 @@ export class Asset extends Model { this.element, this.pdfPage, this.pdfId); this.element.setAttribute("data-loading", "true"); } + /// #if !BROWSER setModelsHash(); + /// #endif }, Constants.TIMEOUT_BLOCKLOAD); /// #endif }