-
-
Save alexdevero/6d9ae389134fbad7561de6e1a16aab39 to your computer and use it in GitHub Desktop.
Clear cach in electron
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const {BrowserWindow} = require('electron'); | |
const win = BrowserWindow.getAllWindows()[0]; | |
const ses = win.webContents.session; | |
ses.clearCache(() => { | |
alert("Cache cleared!"); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment