From 935f4718e05038084773ebf487427e2f7821bd1a Mon Sep 17 00:00:00 2001 From: Xi-Lin Yeh Date: Fri, 21 Jan 2022 08:52:53 -0800 Subject: [PATCH] Fix type in delete function --- electron/api-server.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }