implement a safari hack for ime (#4186)
remove debug logs use a better hack implement a safari hack extract `isSafari` and `isFirefox` to a global variable
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
// https://stackoverflow.com/questions/7944460/detect-safari-browser
|
||||
export const isSafari = /^((?!chrome|android).)*safari/i.test(
|
||||
navigator.userAgent,
|
||||
)
|
||||
|
||||
export const isFirefox = /firefox|fxios/i.test(navigator.userAgent)
|
||||
Reference in New Issue
Block a user