Skip to content

Commit ab3def5

Browse files
save file
1 parent 7d75a5d commit ab3def5

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

utils/editors/editor/editor.html

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,15 @@
114114

115115

116116
initdom(document.body);
117-
117+
118+
119+
window.electronAPI?.onOpenFile(async filePath=>{
120+
121+
var txt = await window.electronAPI.readFile(filePath);
122+
console.log(txt);
123+
124+
});
125+
118126

119127
}//init
120128

0 commit comments

Comments
 (0)