mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-24 02:20:13 +01:00
This commit is contained in:
parent
bc6843417a
commit
22923d3eac
5 changed files with 28 additions and 0 deletions
|
|
@ -26,6 +26,7 @@ import {init} from "../window/init";
|
|||
import {loadPlugins, reloadPlugin} from "../plugin/loader";
|
||||
import {hideAllElements} from "../protyle/ui/hideElements";
|
||||
import {reloadEmoji} from "../emoji";
|
||||
import {updateControlAlt} from "../protyle/util/hotKey";
|
||||
|
||||
class App {
|
||||
public plugins: import("../plugin").Plugin[] = [];
|
||||
|
|
@ -78,6 +79,7 @@ class App {
|
|||
break;
|
||||
case "setConf":
|
||||
window.siyuan.config = data.data;
|
||||
updateControlAlt();
|
||||
break;
|
||||
case "progress":
|
||||
progressLoading(data);
|
||||
|
|
@ -155,6 +157,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");
|
||||
window.siyuan.config = response.data.conf;
|
||||
updateControlAlt();
|
||||
window.siyuan.isPublish = response.data.isPublish;
|
||||
await loadPlugins(this);
|
||||
getLocalStorage(() => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue