mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-17 07:00:12 +01:00
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;
|
return;
|
||||||
}
|
}
|
||||||
const ids = decodeURIComponent(new URL(item.webContents.getURL()).hash.substring(1)).split("\u200b");
|
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.focus();
|
||||||
item.webContents.send("siyuan-open-file", data.options);
|
item.webContents.send("siyuan-open-file", options);
|
||||||
hasMatch = true;
|
hasMatch = true;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue