mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-23 10:00:13 +01:00
This commit is contained in:
parent
1b8f59a898
commit
5578a33b91
1 changed files with 7 additions and 2 deletions
|
|
@ -1,7 +1,8 @@
|
||||||
import {hideMessage, showMessage} from "../dialog/message";
|
|
||||||
/// #if !MOBILE
|
/// #if !MOBILE
|
||||||
import {exportLayout} from "../layout/util";
|
import {exportLayout} from "../layout/util";
|
||||||
/// #endif
|
/// #endif
|
||||||
|
import {isWindow} from "./functions";
|
||||||
|
import {hideMessage, showMessage} from "../dialog/message";
|
||||||
|
|
||||||
export const processMessage = (response: IWebSocketData) => {
|
export const processMessage = (response: IWebSocketData) => {
|
||||||
if ("msg" === response.cmd) {
|
if ("msg" === response.cmd) {
|
||||||
|
|
@ -23,7 +24,11 @@ export const processMessage = (response: IWebSocketData) => {
|
||||||
/// #if MOBILE
|
/// #if MOBILE
|
||||||
window.location.reload();
|
window.location.reload();
|
||||||
/// #else
|
/// #else
|
||||||
|
if (isWindow()) {
|
||||||
|
window.location.reload();
|
||||||
|
} else {
|
||||||
exportLayout(true);
|
exportLayout(true);
|
||||||
|
}
|
||||||
/// #endif
|
/// #endif
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue