chore: improve compatibility for firefox (#38)

This commit is contained in:
josc146
2023-03-20 15:54:38 +08:00
parent 14ad5640f4
commit a47aaa0096
3 changed files with 6 additions and 1 deletions
+1
View File
@@ -5,6 +5,7 @@ export * from './fetch-sse'
export * from './get-conversation-pairs'
export * from './get-possible-element-by-query-selector'
export * from './init-session'
export * from './is-firefox.mjs'
export * from './is-mobile'
export * from './is-safari'
export * from './limited-fetch'
+3
View File
@@ -0,0 +1,3 @@
export function isFirefox() {
return navigator.userAgent.includes('Firefox')
}