Browse Source

Fixed newfile.js for NotepadA bug

Toby Chui 3 năm trước cách đây
mục cha
commit
32a9c0d85b
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      web/NotepadA/backend/newfile.js

+ 1 - 1
web/NotepadA/backend/newfile.js

@@ -1,4 +1,4 @@
 requirelib("filelib");
 filelib.mkdir("user:/Document/NotepadA");
-filelib.writeFile("user:/Document/NotepadA/" + tmpid, ".tmp");
+filelib.writeFile("user:/Document/NotepadA/" + tmpid + ".tmp", "");
 sendJSONResp(JSON.stringify("user:/Document/NotepadA/" + tmpid+".tmp"));