diff --git a/preload.js b/preload.js index 271fe0b..33ae3c7 100644 --- a/preload.js +++ b/preload.js @@ -79,7 +79,7 @@ const Serial = { }, downloadFile: async (folder, filename) => { let contents = await Serial.loadFile(filename) - content = content.replace(//g, ``) + contents = contents.replace(//g, ``) return ipcRenderer.invoke('save-file', folder, filename, contents) }, renameFile: async (oldName, newName) => {