зеркало из https://github.com/github/u2f-api.git
`indexOf` instead of `includes`
IE doesn't have `includes`
This commit is contained in:
Родитель
48a4e3f641
Коммит
748b86ac30
|
@ -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;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче