Explorar el Código

Fixed newfile.js for NotepadA bug

Toby Chui hace 3 años
padre
commit
32a9c0d85b
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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"));