Browse Source
Clear HTTP cache at app boot
fixes LL-559
gre-patch-1
meriadec
6 years ago
No known key found for this signature in database
GPG Key ID: 1D2FC2305E2CB399
1 changed files with
5 additions and
0 deletions
-
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)) |
|
|
|
} |
|
|
|