diff --git a/electron/api-server.js b/electron/api-server.js index 22cd347b7..971922b71 100644 --- a/electron/api-server.js +++ b/electron/api-server.js @@ -74,7 +74,7 @@ async function initialize(win) { // Delete files case "DELETE": - result = await window.webContents.executeJavaScript(`document.deleteFiles("${data.filename}")`); + result = await window.webContents.executeJavaScript(`document.deleteFile("${data.filename}")`); break; }