Browse Source

Clear HTTP cache at app boot

fixes LL-559
gre-patch-1
meriadec 6 years ago
parent
commit
5d583eccd4
No known key found for this signature in database GPG Key ID: 1D2FC2305E2CB399
  1. 5
      src/main/app.js

5
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))
}

Loading…
Cancel
Save