Skip to content

Commit 1001f2f

Browse files
save file
1 parent 1d5ed78 commit 1001f2f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,8 @@
8080
if(path[1]==':'){
8181
path = path.slice(2);
8282
}
83+
path = path.replaceAll('\\','/');
84+
8385
openfile = path;
8486

8587
});
@@ -130,12 +132,13 @@
130132

131133

132134
if(openfile){
133-
var parts = openfile.split('/');
135+
var parts = openfile.split('/').filter(s=>s!='');
134136
var path = '/'+parts.slice(0,-1).join('/');
135137
if(path.length>1){
136138
path += '/';
137139
}
138140
var filename = parts.at(-1);
141+
console.log('openfile',path,filename);
139142
filemod.electron.load.ui(path,filename);
140143
}
141144

0 commit comments

Comments
 (0)