Clean invocation of get/delete

This commit is contained in:
Xi-Lin Yeh 2022-01-20 09:39:50 -08:00
parent 5386f8e027
commit 861fcf70c4

@ -52,7 +52,7 @@ async function initialize(win) {
switch(req.method) { switch(req.method) {
// Request files // Request files
case "GET": case "GET":
result = await window.webContents.executeJavaScript(`document.getFiles("${data.filename}", "${data.code}")`); result = await window.webContents.executeJavaScript(`document.getFiles()`);
break; break;
// Create or update files // Create or update files
@ -74,7 +74,7 @@ async function initialize(win) {
// Delete files // Delete files
case "DELETE": case "DELETE":
result = await window.webContents.executeJavaScript(`document.deleteFiles("${data.filename}", "${data.code}")`); result = await window.webContents.executeJavaScript(`document.deleteFiles("${data.filename}")`);
break; break;
} }