Browse Source

Merge pull request #1674 from meriadec/LL-559

Clear HTTP cache at app boot
gre-patch-1
Gaëtan Renaudeau 6 years ago
committed by GitHub
parent
commit
c88880f737
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  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