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

Add support for Firefox OS phones and tablets #38

Merged
merged 2 commits into from
Sep 18, 2013

Conversation

miketaylr
Copy link
Contributor

No description provided.

@matthewhudson
Copy link
Owner

@miketaylr This is great! Mind removing the lib/* files? I need to clarify that in the README Contributing guidelines. Sorry about that :(

@miketaylr
Copy link
Contributor Author

Oh yeah, no probs @matthewhudson.

matthewhudson added a commit that referenced this pull request Sep 18, 2013
Add support for Firefox OS phones and tablets
@matthewhudson matthewhudson merged commit 51715bb into matthewhudson:master Sep 18, 2013
@matthewhudson
Copy link
Owner

@miketaylr Mind adding the User Agent's you tested against to the following task: #34

They'll be needed in order to add tests (which are long overdue).

@@ -56,11 +56,20 @@ device.windowsPhone = ->
device.windowsTablet = ->
device.windows() and _find 'touch'

device.fxos = ->
_find('(mobile; rv:') or _find('(tablet; rv:')

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To account for device IDs that some vendors put inbetween Mobile; and rv: this should probably be:

_find('mobile') and _find('firefox') and not _find('android')

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I know @miketaylr intends to do something about that problem, whether he uses that suggestion or not :)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually, this diff is old--the current master does fine with device ids. http://matthewhudson.me/projects/device.js/ just needs to be updated to 0.1.58. :)

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@miketaylr @hallvors

Version bumped - sorry for the confusion. Sussing out the details to prevent this from happening again.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

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

Successfully merging this pull request may close these issues.

3 participants