diff --git a/src/main/app.js b/src/main/app.js index 272b0e40..6d354e68 100644 --- a/src/main/app.js +++ b/src/main/app.js @@ -173,4 +173,9 @@ app.on('ready', async () => { Menu.setApplicationMenu(menu) mainWindow = await createMainWindow() + await clearSessionCache(mainWindow.webContents.session) }) + +function clearSessionCache(session) { + return new Promise(r => session.clearCache(r)) +}