Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Vanessa219 authored and appdev committed Oct 31, 2023
1 parent 81f21b8 commit 2cf59be
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ import "./assets/scss/base.scss";

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

constructor() {
/// #if BROWSER
Expand All @@ -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: [],
Expand Down
2 changes: 2 additions & 0 deletions app/src/mobile/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -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: [],
Expand Down
2 changes: 2 additions & 0 deletions app/src/window/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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: [],
Expand Down

0 comments on commit 2cf59be

Please sign in to comment.