diff --git a/public/electron.js b/public/electron.js index ee7025b..143cca3 100644 --- a/public/electron.js +++ b/public/electron.js @@ -122,7 +122,7 @@ function createWindow () { return dialog.showErrorBox("Error", "Selected directory is identical.") } - if(!fs.existsSync(arg.path)) event.returnValue = result + if(!fs.existsSync(arg.path)) return event.returnValue = result const files = fs.readdirSync(arg.path)