From dbb47a2ae1d41b2a81d76f0126cf27345044ed25 Mon Sep 17 00:00:00 2001 From: ElectroMutex <97535877+SkillfulElectro@users.noreply.github.com> Date: Wed, 12 Jun 2024 11:09:07 +0330 Subject: [PATCH] Update main.js - bug fix --- main.js | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/main.js b/main.js index 3e574cb..09b57ea 100644 --- a/main.js +++ b/main.js @@ -271,7 +271,8 @@ app.whenReady().then(() => { const install_check = process.argv.indexOf('-v'); if (install_check !== -1) { - console.log('1.0.8'); + console.log('1.0.9'); + app.quit(); return; } @@ -287,8 +288,12 @@ app.whenReady().then(() => { // just to make sure app.on('will-quit' , () => { - custtomSession.clearStorageData() - session.defaultSession.clearStorageData() + try { + custtomSession.clearStorageData() + session.defaultSession.clearStorageData() + }catch(error){ + + } }) app.on('window-all-closed', () => {