`indexOf` instead of `includes`

IE doesn't have `includes`
This commit is contained in:
Ben Toews 2016-10-11 07:44:23 -06:00 коммит произвёл GitHub
Родитель 48a4e3f641
Коммит 748b86ac30
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -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;
}