浏览代码

:art: https://github.com/siyuan-note/siyuan/issues/7206

Vanessa 2 年之前
父节点
当前提交
d812df99f7
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      app/src/window/openNewWindow.ts

+ 2 - 0
app/src/window/openNewWindow.ts

@@ -8,6 +8,8 @@ import {Tab} from "../layout/Tab";
 export const openNewWindow = (tab: Tab) => {
     const json = {};
     layoutToJSON(tab, json);
+    /// #if !BROWSER
     ipcRenderer.send(Constants.SIYUAN_OPENWINDOW, `${window.location.protocol}//${window.location.host}/stage/build/app/window.html?v=${Constants.SIYUAN_VERSION}&json=${JSON.stringify(json)}`);
+    /// #endif
     tab.parent.removeTab(tab.id);
 };