mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-02-28 05:32:52 +00:00
This commit is contained in:
@@ -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: [],
|
||||
|
||||
@@ -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: [],
|
||||
|
||||
@@ -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: [],
|
||||
|
||||
Reference in New Issue
Block a user