Commit ce62c5ac authored by Kim Nguyễn's avatar Kim Nguyễn
Browse files

Small tweak in the javascript editor.

parent 346e6b8f
......@@ -131,7 +131,7 @@ var saveAs = (function ()
a.style.zIndex = "-10";
return function () {
a.href = "data:application/octet-stream;base64," + btoa(editor.getValue()+"\n");
a.download = currentFilename;
a.download = /\S/.test(currentFilename) ? currentFilename : "Test.cd";
a.click();
};
}) ();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment