Skip to content

Commit

Permalink
Support reloading browser views (#16)
Browse files Browse the repository at this point in the history
  • Loading branch information
Seavenly authored Dec 1, 2020
1 parent 59266d2 commit f7c3634
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,10 @@ module.exports = (moduleObject, options) => {
} else {
for (const window_ of electron.BrowserWindow.getAllWindows()) {
window_.webContents.reloadIgnoringCache();

for (const view_ of window_.getBrowserViews()) {
view_.webContents.reloadIgnoringCache();
}
}
}
});
Expand Down

0 comments on commit f7c3634

Please sign in to comment.