Skip to content

Commit

Permalink
Do not try to update pinned tabs in a destroyed window.
Browse files Browse the repository at this point in the history
  • Loading branch information
petemill committed Nov 8, 2017
1 parent 8d8e0fb commit 47e6426
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/browser/windows.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,9 @@ const siteMatchesTab = (site, tab) => {
}

const updatePinnedTabs = (win) => {
if (!win || win.isDestroyed()) {
return
}
if (win.webContents.browserWindowOptions.disposition === 'new-popup') {
return
}
Expand Down

0 comments on commit 47e6426

Please sign in to comment.