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

document is not defined #43

Open
giopunt opened this issue Nov 15, 2017 · 3 comments
Open

document is not defined #43

giopunt opened this issue Nov 15, 2017 · 3 comments

Comments

@giopunt
Copy link

giopunt commented Nov 15, 2017

This should probably check if document is defined

var testDiv = document.createElement('div');

@giopunt giopunt changed the title document is not defined document is not defined Nov 15, 2017
@giopunt giopunt changed the title document is not defined document is not defined Nov 15, 2017
@lazd
Copy link
Owner

lazd commented Nov 15, 2017

@giopunt hmm, in what cases is document not defined? I can't seem to find a case where it isn't. Regardless, rather than check, this script should execute once document is defined since we need to know if -webkit-overflow-scrolling is supported.

@giopunt
Copy link
Author

giopunt commented Nov 15, 2017

Isomorphic JS, it could be run on a server @lazd

@lazd
Copy link
Owner

lazd commented Nov 15, 2017

Hmm, I don't think it makes sense to run this on the server, it's only there to fix a client-side issue on a specific device...

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

2 participants