From 6ee3761bc4c99791de9b36cc77cd4a0fbddde6a6 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Sat, 28 Oct 2023 23:49:07 +0800 Subject: [PATCH] :art: fix https://github.com/siyuan-note/siyuan/issues/9538 --- app/src/index.ts | 3 +++ app/src/mobile/index.ts | 2 ++ app/src/window/index.ts | 2 ++ 3 files changed, 7 insertions(+) diff --git a/app/src/index.ts b/app/src/index.ts index 074a85b60..6954b8bea 100644 --- a/app/src/index.ts +++ b/app/src/index.ts @@ -30,6 +30,7 @@ import "./assets/scss/base.scss"; export class App { public plugins: import("./plugin").Plugin[] = []; + public appId: string; constructor() { /// #if BROWSER @@ -38,6 +39,8 @@ export class App { addScriptSync(`${Constants.PROTYLE_CDN}/js/lute/lute.min.js?v=${Constants.SIYUAN_VERSION}`, "protyleLuteScript"); addScript(`${Constants.PROTYLE_CDN}/js/protyle-html.js?v=${Constants.SIYUAN_VERSION}`, "protyleWcHtmlScript"); addBaseURL(); + + this.appId =Constants.SIYUAN_APPID; window.siyuan = { zIndex: 10, transactions: [], diff --git a/app/src/mobile/index.ts b/app/src/mobile/index.ts index 2515d422f..245ae0042 100644 --- a/app/src/mobile/index.ts +++ b/app/src/mobile/index.ts @@ -29,6 +29,7 @@ import {Menu} from "../plugin/Menu"; class App { public plugins: import("../plugin").Plugin[] = []; + public appId:string; constructor() { if (!window.webkit?.messageHandlers && !window.JSAndroid) { @@ -37,6 +38,7 @@ class App { addScriptSync(`${Constants.PROTYLE_CDN}/js/lute/lute.min.js?v=${Constants.SIYUAN_VERSION}`, "protyleLuteScript"); addScript(`${Constants.PROTYLE_CDN}/js/protyle-html.js?v=${Constants.SIYUAN_VERSION}`, "protyleWcHtmlScript"); addBaseURL(); + this.appId =Constants.SIYUAN_APPID; window.siyuan = { zIndex: 10, notebooks: [], diff --git a/app/src/window/index.ts b/app/src/window/index.ts index 492a5de21..fc639ed29 100644 --- a/app/src/window/index.ts +++ b/app/src/window/index.ts @@ -23,11 +23,13 @@ import {loadPlugins} from "../plugin/loader"; class App { public plugins: import("../plugin").Plugin[] = []; + public appId:string; constructor() { addScriptSync(`${Constants.PROTYLE_CDN}/js/lute/lute.min.js?v=${Constants.SIYUAN_VERSION}`, "protyleLuteScript"); addScript(`${Constants.PROTYLE_CDN}/js/protyle-html.js?v=${Constants.SIYUAN_VERSION}`, "protyleWcHtmlScript"); addBaseURL(); + this.appId =Constants.SIYUAN_APPID; window.siyuan = { zIndex: 10, transactions: [],