Skip to content

Commit

Permalink
Add Windows Phone to mobile
Browse files Browse the repository at this point in the history
Add Windows Phone to mobile userAgents
  • Loading branch information
Neftedollar authored and glasser committed Apr 4, 2014
1 parent da0138c commit bae16dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/facebook/facebook_client.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Facebook.requestCredential = function (options, credentialRequestCompleteCallbac
}

var credentialToken = Random.id();
var mobile = /Android|webOS|iPhone|iPad|iPod|BlackBerry/i.test(navigator.userAgent);
var mobile = /Android|webOS|iPhone|iPad|iPod|BlackBerry|Windows Phone/i.test(navigator.userAgent);
var display = mobile ? 'touch' : 'popup';

var scope = "email";
Expand Down

0 comments on commit bae16dd

Please sign in to comment.