Skip to content

Commit 8ca95a1

Browse files
committed
fix:clearCache.then
1 parent bb728ee commit 8ca95a1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ const getMenuData = function () {
248248
//
249249
if (mainWindow) {
250250
//console.log(path.join(app.getPath('userData'), 'Cache'));
251-
mainWindow.webContents.session.clearCache(function () {
251+
mainWindow.webContents.session.clearCache().then(()=>{
252252
mainWindow.loadURL(util.mainURL);
253253
});
254254
}

0 commit comments

Comments
 (0)