mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-05-19 02:21:38 +08:00
This commit is contained in:
parent
8ba3ab0add
commit
d812df99f7
@ -8,6 +8,8 @@ import {Tab} from "../layout/Tab";
|
|||||||
export const openNewWindow = (tab: Tab) => {
|
export const openNewWindow = (tab: Tab) => {
|
||||||
const json = {};
|
const json = {};
|
||||||
layoutToJSON(tab, 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)}`);
|
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);
|
tab.parent.removeTab(tab.id);
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user