We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 393a742 commit 877a005Copy full SHA for 877a005
src/template/main.js
@@ -91,8 +91,10 @@ function createWindow() {
91
const ses = mainWindow.webContents.session;
92
ses.clearStorageData({
93
storages: ['cachestorage', 'serviceworkers'],
94
- }, () => {
+ }).then (() => {
95
console.log('storage cleared');
96
+ }).catch(e => {
97
+ console.log('Error clearing cache:', e)
98
});
99
100
if (isURL) {
0 commit comments