Skip to content

Commit

Permalink
fixed isIosChrome_ check
Browse files Browse the repository at this point in the history
wallet does not use jquery
  • Loading branch information
cryi authored Jun 13, 2020
1 parent 40e9bf9 commit 61831fc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/scripts/staticJS/u2f-api.js
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ u2f.isAndroidChrome_ = function() {
* @private
*/
u2f.isIosChrome_ = function() {
return $.inArray(navigator.platform, ["iPhone", "iPad", "iPod"]) > -1;
return ["iPhone", "iPad", "iPod"].indexOf(navigator.platform) > -1;
};

/**
Expand Down Expand Up @@ -753,4 +753,4 @@ u2f.getApiVersion = function(callback, opt_timeoutSeconds) {
port.postMessage(req);
});
};
module.exports = u2f;
module.exports = u2f;

0 comments on commit 61831fc

Please sign in to comment.