Skip to content
This repository has been archived by the owner on Sep 1, 2023. It is now read-only.

Commit

Permalink
chore: remove browser views before destroying
Browse files Browse the repository at this point in the history
  • Loading branch information
herteleo committed Aug 9, 2020
1 parent c95e079 commit 767ccd7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,10 @@ export default {
methods: {
destroyBrowserViews() {
const browserViews = remote.getCurrentWindow().getBrowserViews();
browserViews.forEach(bv => bv.destroy());
browserViews.forEach((view) => {
remote.getCurrentWindow().removeBrowserView(view);
view.destroy();
});
},
},
};
Expand Down

0 comments on commit 767ccd7

Please sign in to comment.