Skip to content
This repository was archived by the owner on Apr 7, 2025. It is now read-only.

Commit 205939f

Browse files
Merge pull request #242 from vslio/prevent-crash-when-window-null
Prevent crash when window is null
2 parents db767d7 + c89c042 commit 205939f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/share-network.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,9 @@ export default {
222222
',screenY=' + this.popup.top
223223
)
224224

225+
// If an adblocker prevent popups, popup.window stays undefined and we can't display it
226+
if (!this.popup.window) return
227+
225228
this.popup.window.focus()
226229

227230
// Create an interval to detect popup closing event

0 commit comments

Comments
 (0)