Commit 2cf59be 1 parent 81f21b8 commit 2cf59be Copy full SHA for 2cf59be
File tree 3 files changed +7
-0
lines changed
3 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -30,6 +30,7 @@ import "./assets/scss/base.scss";
30
30
31
31
export class App {
32
32
public plugins : import ( "./plugin" ) . Plugin [ ] = [ ] ;
33
+ public appId : string ;
33
34
34
35
constructor ( ) {
35
36
/// #if BROWSER
@@ -38,6 +39,8 @@ export class App {
38
39
addScriptSync ( `${ Constants . PROTYLE_CDN } /js/lute/lute.min.js?v=${ Constants . SIYUAN_VERSION } ` , "protyleLuteScript" ) ;
39
40
addScript ( `${ Constants . PROTYLE_CDN } /js/protyle-html.js?v=${ Constants . SIYUAN_VERSION } ` , "protyleWcHtmlScript" ) ;
40
41
addBaseURL ( ) ;
42
+
43
+ this . appId = Constants . SIYUAN_APPID ;
41
44
window . siyuan = {
42
45
zIndex : 10 ,
43
46
transactions : [ ] ,
Original file line number Diff line number Diff line change @@ -29,6 +29,7 @@ import {Menu} from "../plugin/Menu";
29
29
30
30
class App {
31
31
public plugins : import ( "../plugin" ) . Plugin [ ] = [ ] ;
32
+ public appId :string ;
32
33
33
34
constructor ( ) {
34
35
if ( ! window . webkit ?. messageHandlers && ! window . JSAndroid ) {
@@ -37,6 +38,7 @@ class App {
37
38
addScriptSync ( `${ Constants . PROTYLE_CDN } /js/lute/lute.min.js?v=${ Constants . SIYUAN_VERSION } ` , "protyleLuteScript" ) ;
38
39
addScript ( `${ Constants . PROTYLE_CDN } /js/protyle-html.js?v=${ Constants . SIYUAN_VERSION } ` , "protyleWcHtmlScript" ) ;
39
40
addBaseURL ( ) ;
41
+ this . appId = Constants . SIYUAN_APPID ;
40
42
window . siyuan = {
41
43
zIndex : 10 ,
42
44
notebooks : [ ] ,
Original file line number Diff line number Diff line change @@ -23,11 +23,13 @@ import {loadPlugins} from "../plugin/loader";
23
23
24
24
class App {
25
25
public plugins : import ( "../plugin" ) . Plugin [ ] = [ ] ;
26
+ public appId :string ;
26
27
27
28
constructor ( ) {
28
29
addScriptSync ( `${ Constants . PROTYLE_CDN } /js/lute/lute.min.js?v=${ Constants . SIYUAN_VERSION } ` , "protyleLuteScript" ) ;
29
30
addScript ( `${ Constants . PROTYLE_CDN } /js/protyle-html.js?v=${ Constants . SIYUAN_VERSION } ` , "protyleWcHtmlScript" ) ;
30
31
addBaseURL ( ) ;
32
+ this . appId = Constants . SIYUAN_APPID ;
31
33
window . siyuan = {
32
34
zIndex : 10 ,
33
35
transactions : [ ] ,
You can’t perform that action at this time.
0 commit comments