|
|
@@ -68,7 +68,9 @@ app.on('before-quit', (event) => {
|
|
|
})
|
|
|
|
|
|
app.on('window-all-closed', () => {
|
|
|
- if (process.platform !== 'darwin') app.quit();
|
|
|
+ if (mainWindow && !mainWindow.isDestroyed()) {
|
|
|
+ mainWindow.webContents.send('clear-token-cache');
|
|
|
+ }
|
|
|
});
|
|
|
|
|
|
app.on('will-quit', () => {
|