-
-
Notifications
You must be signed in to change notification settings - Fork 141
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
Struggeling width document with #556
Comments
@matthiastosch, I assume you're using the latest version of phantomas. If so, please try running phantomas using PhantomJS 2.0 ( |
with --engine=webkit2 i got this error. i use mac os. |
i've run the the script with Debian & --engine=webkit2 and all values are 400. As described in my first post on top. do you have an other idea to detect mobile friendly markup? |
Well, phantomas is not responsible for running "browser" JavaScript - it's PhantomJS that gives you incorrect values. You can give SlimerJS a try - |
Hi There,
i'm trying to detect if the tested url is a mobile site. One Metrik i try to use is document width is greater than the viewport width (in --phone mode) than i would like to store the metric isMobile = 0.
My Problem is: all js attributes for the document with are the same as the viewport size (400 in phone mode)
document.body.scrollWidth
document.documentElement.scrollWidth
when i try this in mobile emulator on chrome with the url www.mtosch.de i got the result 980. With phantomas i got alway 400. Is there a difference with the emulation?
Or do you know an other way to detect mobile Markup?
Thanks a lot for help
Matthias
The text was updated successfully, but these errors were encountered: