mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-03-08 21:52:33 +01:00
This commit is contained in:
parent
db690c51b6
commit
09e5828ffe
4 changed files with 22 additions and 11 deletions
|
|
@ -2,10 +2,14 @@ import {openMobileFileById} from "../editor";
|
|||
import {processSync, progressLoading, progressStatus, reloadSync, transactionError} from "../../dialog/processSystem";
|
||||
import {Constants} from "../../constants";
|
||||
import {App} from "../../index";
|
||||
import {reloadPlugin} from "../../plugin/loader";
|
||||
|
||||
export const onMessage = (app: App, data: IWebSocketData) => {
|
||||
if (data) {
|
||||
switch (data.cmd) {
|
||||
case "reloadPlugin":
|
||||
reloadPlugin(app);
|
||||
break;
|
||||
case "syncMergeResult":
|
||||
reloadSync(app, data.data);
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue