diff options
Diffstat (limited to 'app.js')
-rw-r--r-- | app.js | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -76,7 +76,7 @@ const fs = require("fs"); app.setPath("crashDumps", homedir + "/.kartik/dumps"); app.setPath('userData', homedir + "/.kartik/storage"); app.whenReady().then(async () => { - if (require('./package.json').channel !== "stable" && require('./package.json').channel !== "git" && !fs.existsSync(homedir + "/.kartik/current.kfn")) { + if (require('./package.json').channel !== "stable" && require('./package.json').channel !== "git" && !require('fs').existsSync(homedir + "/.kartik/current.kfn")) { console.log(" * Opening save data conversion dialog"); global.converting = true; btn = require('electron').dialog.showMessageBoxSync( @@ -431,4 +431,4 @@ const fs = require("fs"); app.quit() } }) -})();
\ No newline at end of file +})(); |