From 61831fc9c2a3bdfa7c098e865efc5a85fa8e1e68 Mon Sep 17 00:00:00 2001 From: Void <36897290+cryi@users.noreply.github.com> Date: Sat, 13 Jun 2020 21:45:16 +0200 Subject: [PATCH] fixed isIosChrome_ check wallet does not use jquery --- app/scripts/staticJS/u2f-api.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/scripts/staticJS/u2f-api.js b/app/scripts/staticJS/u2f-api.js index c02f6706..a5c5de9c 100644 --- a/app/scripts/staticJS/u2f-api.js +++ b/app/scripts/staticJS/u2f-api.js @@ -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; }; /** @@ -753,4 +753,4 @@ u2f.getApiVersion = function(callback, opt_timeoutSeconds) { port.postMessage(req); }); }; -module.exports = u2f; \ No newline at end of file +module.exports = u2f;