fix user agent checks

This commit is contained in:
Kieran 2018-11-27 16:33:18 +08:00
parent e1b8cd6315
commit 33c62aaef3

View File

@ -19,11 +19,11 @@ const App = {
},
get IsChrome() {
return !App.IsEdge && /Chrome/.test(navigator.userAgent);
return !App.IsEdge && /^Mozilla.*Chrome/.test(navigator.userAgent);
},
get IsFirefox() {
return !App.IsEdge && /Mozilla/.test(navigator.userAgent);
return !App.IsEdge && /^Mozilla.*Firefox/.test(navigator.userAgent);
},
/**