mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-21 00:50:13 +01:00
🚨
This commit is contained in:
parent
0073f708be
commit
596e81bba3
10 changed files with 8 additions and 10 deletions
|
|
@ -182,7 +182,7 @@ export const openFile = (options: IOpenFileOptions) => {
|
|||
if (ids.includes(options.rootID) || ids.includes(options.assetPath)) {
|
||||
item.focus();
|
||||
const optionsClone = Object.assign({}, options);
|
||||
delete optionsClone.app
|
||||
delete optionsClone.app;
|
||||
item.webContents.executeJavaScript(`window.newWindow.openFile(${JSON.stringify(optionsClone)});`);
|
||||
if (options.afterOpen) {
|
||||
options.afterOpen();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue