Relaunch app on clearing app data

This commit is contained in:
akashnimare
2017-09-06 16:23:56 +05:30
parent 26172d8508
commit f426c932b0

View File

@@ -371,7 +371,7 @@ class AppMenu {
const getAppPath = path.join(app.getPath('appData'), appName, 'window-state.json');
fs.unlink(getAppPath, () => {
setTimeout(() => AppMenu.sendAction('hard-reload'), 1000);
setTimeout(() => app.relaunch(), app.exit(), 1000);
});
}