refactor: move user agent checks to separate file
This commit is contained in:
4
packages/hoppscotch-app/helpers/utils/userAgent.ts
Normal file
4
packages/hoppscotch-app/helpers/utils/userAgent.ts
Normal file
@@ -0,0 +1,4 @@
|
||||
export const browserIsChrome = () =>
|
||||
/Chrome/i.test(navigator.userAgent) && /Google/i.test(navigator.vendor)
|
||||
|
||||
export const browserIsFirefox = () => /Firefox/i.test(navigator.userAgent)
|
||||
Reference in New Issue
Block a user