Skip to content

Commit

Permalink
fixed reload issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Awendel committed Sep 13, 2022
1 parent 14de223 commit a5b33e9
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/hook.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,16 @@ function reload() {

if (windows && windows.length) {
for (const win of windows) {
win.webContents.reloadIgnoringCache();
win.webContents.reloadIgnoringCache()

const views = win.getBrowserViews()
views.forEach(function(view){
view.webContents.reloadIgnoringCache()
})

}
}
}

required.on('file', ({ type, id }) => {
if (type !== 'file') {
return;
Expand Down

0 comments on commit a5b33e9

Please sign in to comment.