We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 76e6f25 commit 3c967d4Copy full SHA for 3c967d4
utils/editors/editor/v2.0/editor-v2.0.html
@@ -75,9 +75,9 @@
75
76
console.log(window.electronAPI);
77
78
- window.electronAPI?.onOpenFile(async filePath=>{
+ window.electronAPI?.onOpenFile(async({path})=>{
79
console.log('openfile',filePath);
80
- var txt = await window.electronAPI.readFile(filePath);
+ var txt = await window.electronAPI.readFile({path});
81
console.log('txt',txt);
82
});
83
0 commit comments