Skip to content

Commit

Permalink
Merge pull request #242 from vslio/prevent-crash-when-window-null
Browse files Browse the repository at this point in the history
Prevent crash when window is null
  • Loading branch information
nicolasbeauvais committed Oct 2, 2020
2 parents db767d7 + c89c042 commit 205939f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/share-network.js
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,9 @@ export default {
',screenY=' + this.popup.top
)

// If an adblocker prevent popups, popup.window stays undefined and we can't display it
if (!this.popup.window) return

this.popup.window.focus()

// Create an interval to detect popup closing event
Expand Down

0 comments on commit 205939f

Please sign in to comment.