mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-21 00:50:13 +01:00
🚨
This commit is contained in:
parent
a8127fce8d
commit
32af26c519
6 changed files with 20 additions and 21 deletions
|
|
@ -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) ||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue