Vanessa 2025-04-23 17:26:44 +08:00
parent bc6843417a
commit 22923d3eac
5 changed files with 28 additions and 0 deletions

View file

@ -37,6 +37,7 @@ import {setLocalShorthandCount} from "./util/noRelyPCFunction";
/// #endif
import {getDockByType} from "./layout/tabUtil";
import {Tag} from "./layout/dock/Tag";
import {updateControlAlt} from "./protyle/util/hotKey";
export class App {
public plugins: import("./plugin").Plugin[] = [];
@ -101,6 +102,7 @@ export class App {
break;
case "setConf":
window.siyuan.config = data.data;
updateControlAlt();
break;
case "progress":
progressLoading(data);
@ -182,6 +184,7 @@ 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");
window.siyuan.config = response.data.conf;
updateControlAlt();
window.siyuan.isPublish = response.data.isPublish;
await loadPlugins(this);
getLocalStorage(() => {