Merge pull request #9 from mastahyeti/edge-detection

Fix UA detection
This commit is contained in:
Ben Toews 2016-10-07 09:40:42 -06:00 коммит произвёл GitHub
Родитель 116892fa20 eb60bafa86
Коммит 738fcfd201
1 изменённых файлов: 2 добавлений и 1 удалений

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

@ -11,7 +11,8 @@
'use strict';
(function (){
if ('u2f' in window || !('chrome' in window)) {
var isChrome = 'chrome' in window && !window.navigator.userAgent.includes('Edge');
if ('u2f' in window || !isChrome) {
return;
}