Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"TypeError: null is not an object" error when browser popups are blocked #79

Open
blutter opened this issue Mar 31, 2021 · 2 comments
Open
Assignees

Comments

@blutter
Copy link

blutter commented Mar 31, 2021

The error "TypeError: null is not an object" will appear when browser popups are blocked and the NewWindow component is rendered.

This error started occurring in v0.1.3 and appears to be caused by the changes in 1eeae9b

Specifically the change:

    this.window = window.open(url, name, toWindowFeatures(features))
-
+   this.container = this.window.document.createElement('div')

When blockups are blocked then window.open() returns null.

A workaround is to downgrade to v0.1.2

@rmariuzzo
Copy link
Owner

rmariuzzo commented Mar 31, 2021 via email

@amecava
Copy link

amecava commented Sep 24, 2021

Hi! I have the same problem, is this resolved?

@rmariuzzo rmariuzzo self-assigned this Nov 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants