Skip to content

Commit 3c967d4

Browse files
save file
1 parent 76e6f25 commit 3c967d4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

utils/editors/editor/v2.0/editor-v2.0.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,9 +75,9 @@
7575

7676
console.log(window.electronAPI);
7777

78-
window.electronAPI?.onOpenFile(async filePath=>{
78+
window.electronAPI?.onOpenFile(async({path})=>{
7979
console.log('openfile',filePath);
80-
var txt = await window.electronAPI.readFile(filePath);
80+
var txt = await window.electronAPI.readFile({path});
8181
console.log('txt',txt);
8282
});
8383

0 commit comments

Comments
 (0)