You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 9, 2023. It is now read-only.
I just added an experimental device.mobile property to the master branch of dmhendricks/PgwBrowser. Rather than adding the deivce type to the existing browser/os definitions, I opted to use detectmobilebrowsers.com's method.
Example:
var pgwBrowser = $.pgwBrowser();
console.log(pgwBrowser.device.mobile); // returns true or false
There is also an experimental device.type string property which currently only returns "mobile" or "desktop." My plan is to add more device types and other information eventually, as time permits.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hi Jonathan,
I think in the futur, it will be nice to add an attribute "desktop" or "mobile" in "os" node.
If "os" group is "Windows Phone" or "Android" or "iOS":
In the other cases:
Regards,
The text was updated successfully, but these errors were encountered: