Skip to content

Commit

Permalink
🐛 fix siyuan-note#9405
Browse files Browse the repository at this point in the history
  • Loading branch information
Vanessa219 committed Oct 12, 2023
1 parent f0f55d3 commit c5206f7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions app/electron/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit c5206f7

Please sign in to comment.