From 748b86ac305c76613a7619d62f692f5bd997f4f4 Mon Sep 17 00:00:00 2001 From: Ben Toews Date: Tue, 11 Oct 2016 07:44:23 -0600 Subject: [PATCH] `indexOf` instead of `includes` IE doesn't have `includes` --- u2f-api-polyfill.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/u2f-api-polyfill.js b/u2f-api-polyfill.js index e2c114c..8fbf271 100644 --- a/u2f-api-polyfill.js +++ b/u2f-api-polyfill.js @@ -11,7 +11,7 @@ 'use strict'; (function (){ - var isChrome = 'chrome' in window && !window.navigator.userAgent.includes('Edge'); + var isChrome = 'chrome' in window && window.navigator.userAgent.indexOf('Edge') < 0; if ('u2f' in window || !isChrome) { return; }