mirror of
https://git.v0l.io/Kieran/void.cat.git
synced 2025-03-26 22:41:44 +01:00
fix user agent checks
This commit is contained in:
parent
e1b8cd6315
commit
33c62aaef3
@ -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);
|
||||
},
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user