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 bb728ee commit 8ca95a1Copy full SHA for 8ca95a1
src/main/index.js
@@ -248,7 +248,7 @@ const getMenuData = function () {
248
//
249
if (mainWindow) {
250
//console.log(path.join(app.getPath('userData'), 'Cache'));
251
- mainWindow.webContents.session.clearCache(function () {
+ mainWindow.webContents.session.clearCache().then(()=>{
252
mainWindow.loadURL(util.mainURL);
253
});
254
}
0 commit comments