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
|
||||
import {exportLayout} from "../layout/util";
|
||||
/// #endif
|
||||
import {isWindow} from "./functions";
|
||||
import {hideMessage, showMessage} from "../dialog/message";
|
||||
|
||||
export const processMessage = (response: IWebSocketData) => {
|
||||
if ("msg" === response.cmd) {
|
||||
|
|
@ -23,7 +24,11 @@ export const processMessage = (response: IWebSocketData) => {
|
|||
/// #if MOBILE
|
||||
window.location.reload();
|
||||
/// #else
|
||||
exportLayout(true);
|
||||
if (isWindow()) {
|
||||
window.location.reload();
|
||||
} else {
|
||||
exportLayout(true);
|
||||
}
|
||||
/// #endif
|
||||
return false;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue