This commit is contained in:
parent
f0f55d3b02
commit
c5206f7084
1 changed files with 3 additions and 2 deletions
|
@ -695,9 +695,10 @@ app.whenReady().then(() => {
|
|||
return;
|
||||
}
|
||||
const ids = decodeURIComponent(new URL(item.webContents.getURL()).hash.substring(1)).split("\u200b");
|
||||
if (ids.includes(data.options.rootID) || ids.includes(data.options.assetPath)) {
|
||||
const options = JSON.parse(data.options);
|
||||
if (ids.includes(options.rootID) || ids.includes(options.assetPath)) {
|
||||
item.focus();
|
||||
item.webContents.send("siyuan-open-file", data.options);
|
||||
item.webContents.send("siyuan-open-file", options);
|
||||
hasMatch = true;
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue