Skip to content

Commit

Permalink
fix cache clear error on macOS/darwin
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel11420 committed Mar 15, 2020
1 parent 59f3271 commit f0f2626
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ autoUpdater.checkForUpdatesAndNotify();
let mainWindow;

function clearCache() {
mainWindow.webContents.session.clearCache();
if (mainWindow != null) mainWindow.webContents.session.clearCache();
}

function createWindow () {
Expand Down

0 comments on commit f0f2626

Please sign in to comment.