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 969a07b commit 3bb4352Copy full SHA for 3bb4352
utils/editors/editor/v2.0/editor-v2.0.html
@@ -77,8 +77,10 @@
77
78
window.electronAPI?.onOpenFile(async({path})=>{
79
console.log('openfile',path);
80
- var txt = await window.electronAPI.readFile({path});
81
- console.log('txt',txt);
+ var buf = await window.electronAPI.readFile({path});
+ console.log('buf',buf);
82
+ await window.electronAPI.writeFile({path,buf});
83
+
84
});
85
86
0 commit comments