Skip to content

Commit 2cf59be

Browse files
Vanessa219appdev
authored andcommitted
1 parent 81f21b8 commit 2cf59be

File tree

3 files changed

+7
-0
lines changed

3 files changed

+7
-0
lines changed

app/src/index.ts

+3
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ import "./assets/scss/base.scss";
3030

3131
export class App {
3232
public plugins: import("./plugin").Plugin[] = [];
33+
public appId: string;
3334

3435
constructor() {
3536
/// #if BROWSER
@@ -38,6 +39,8 @@ export class App {
3839
addScriptSync(`${Constants.PROTYLE_CDN}/js/lute/lute.min.js?v=${Constants.SIYUAN_VERSION}`, "protyleLuteScript");
3940
addScript(`${Constants.PROTYLE_CDN}/js/protyle-html.js?v=${Constants.SIYUAN_VERSION}`, "protyleWcHtmlScript");
4041
addBaseURL();
42+
43+
this.appId =Constants.SIYUAN_APPID;
4144
window.siyuan = {
4245
zIndex: 10,
4346
transactions: [],

app/src/mobile/index.ts

+2
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ import {Menu} from "../plugin/Menu";
2929

3030
class App {
3131
public plugins: import("../plugin").Plugin[] = [];
32+
public appId:string;
3233

3334
constructor() {
3435
if (!window.webkit?.messageHandlers && !window.JSAndroid) {
@@ -37,6 +38,7 @@ class App {
3738
addScriptSync(`${Constants.PROTYLE_CDN}/js/lute/lute.min.js?v=${Constants.SIYUAN_VERSION}`, "protyleLuteScript");
3839
addScript(`${Constants.PROTYLE_CDN}/js/protyle-html.js?v=${Constants.SIYUAN_VERSION}`, "protyleWcHtmlScript");
3940
addBaseURL();
41+
this.appId =Constants.SIYUAN_APPID;
4042
window.siyuan = {
4143
zIndex: 10,
4244
notebooks: [],

app/src/window/index.ts

+2
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,13 @@ import {loadPlugins} from "../plugin/loader";
2323

2424
class App {
2525
public plugins: import("../plugin").Plugin[] = [];
26+
public appId:string;
2627

2728
constructor() {
2829
addScriptSync(`${Constants.PROTYLE_CDN}/js/lute/lute.min.js?v=${Constants.SIYUAN_VERSION}`, "protyleLuteScript");
2930
addScript(`${Constants.PROTYLE_CDN}/js/protyle-html.js?v=${Constants.SIYUAN_VERSION}`, "protyleWcHtmlScript");
3031
addBaseURL();
32+
this.appId =Constants.SIYUAN_APPID;
3133
window.siyuan = {
3234
zIndex: 10,
3335
transactions: [],

0 commit comments

Comments
 (0)