Skip to content

Commit 877a005

Browse files
committed
fix storage clean
1 parent 393a742 commit 877a005

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/template/main.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,10 @@ function createWindow() {
9191
const ses = mainWindow.webContents.session;
9292
ses.clearStorageData({
9393
storages: ['cachestorage', 'serviceworkers'],
94-
}, () => {
94+
}).then (() => {
9595
console.log('storage cleared');
96+
}).catch(e => {
97+
console.log('Error clearing cache:', e)
9698
});
9799

98100
if (isURL) {

0 commit comments

Comments
 (0)