mquandalle:ismobile

v0.1.0Published 10 years ago

This package has not had recent updates. Please investigate it's current state before committing to using it in your project.

Meteor.isMobile

Relying on the user agent to adapt functionalities of an application is generally not recommended. It's far better to test directly the abilities of the client device (size, rotation, touch screen, local storage, etc.).

Nevertheless because the world is not perfect, you sometimes want to use the ugly Meteor.isMobile boolean variable provided by this package. Its value is based on the user agent string, so use it at your own risks!