We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3468291 commit ef41e8bCopy full SHA for ef41e8b
utils/editors/editor/v2.0/editor-v2.0.html
@@ -73,6 +73,17 @@
73
//:
74
75
76
+ console.log(window.electronAPI);
77
+
78
+ window.electronAPI?.onOpenFile(async filePath=>{
79
+ console.log('openfile',filepath);
80
+ var txt = await window.electronAPI.readFile(filePath);
81
+ console.log(txt);
82
83
+ });
84
85
86
87
async function init(){
88
debug('init',version);
89
//keydown = keydown();
@@ -117,16 +128,6 @@
117
128
118
129
119
130
120
- console.log(window.electronAPI);
121
-
122
- window.electronAPI?.onOpenFile(async filePath=>{
123
- console.log('openfile',filepath);
124
- var txt = await window.electronAPI.readFile(filePath);
125
- console.log(txt);
126
127
- });
131
}//init
132
133
0 commit comments