This commit is contained in:
Vanessa 2023-03-23 18:51:20 +08:00
parent a8127fce8d
commit 32af26c519
6 changed files with 20 additions and 21 deletions

View file

@ -118,7 +118,7 @@ const openFile = (options: IOpenFileOptions) => {
/// #if !BROWSER
// https://github.com/siyuan-note/siyuan/issues/7491
BrowserWindow.getAllWindows().find((item) => {
const json = getSearch("json", new URL(item.webContents.getURL()).search)
const json = getSearch("json", new URL(item.webContents.getURL()).search);
if (json) {
const jsonObj = JSON.parse(json);
if ((jsonObj.children.rootId && jsonObj.children.rootId === options.rootID) ||