Trailing whitespace and files not ending with \n are now illegal

This commit is contained in:
BB
2022-03-06 05:34:04 +01:00
parent 570b8caf78
commit 2f4d879c16
14 changed files with 18 additions and 18 deletions
+2 -2
View File
@@ -26,7 +26,7 @@ async function initialize(win) {
} else {
log.log('Invalid authentication token');
res.writeHead(401);
res.end(JSON.stringify({
success: false,
msg: 'Invalid authentication token'
@@ -71,7 +71,7 @@ async function initialize(win) {
result = await window.webContents.executeJavaScript(`document.saveFile("${data.filename}", "${data.code}")`);
break;
// Delete files
case "DELETE":
result = await window.webContents.executeJavaScript(`document.deleteFile("${data.filename}")`);