浏览代码

Fixed newfile.js for NotepadA bug

Toby Chui 3 年之前
父节点
当前提交
32a9c0d85b
共有 1 个文件被更改,包括 1 次插入1 次删除
  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"));