mirror of
https://github.com/sasjs/adapter.git
synced 2026-01-08 13:00:05 +00:00
chore(*): change code style to use single quote
This commit is contained in:
@@ -1,29 +1,29 @@
|
||||
export function isIEorEdgeOrOldFirefox() {
|
||||
if (typeof window === "undefined") {
|
||||
if (typeof window === 'undefined') {
|
||||
return false
|
||||
}
|
||||
const ua = window.navigator.userAgent
|
||||
|
||||
if (ua.indexOf("Firefox") > 0) {
|
||||
if (ua.indexOf('Firefox') > 0) {
|
||||
const version = parseInt(
|
||||
ua.substring(ua.lastIndexOf("Firefox/") + 8, ua.length),
|
||||
ua.substring(ua.lastIndexOf('Firefox/') + 8, ua.length),
|
||||
10
|
||||
)
|
||||
return version <= 60
|
||||
}
|
||||
|
||||
const msie = ua.indexOf("MSIE ")
|
||||
const msie = ua.indexOf('MSIE ')
|
||||
if (msie > 0) {
|
||||
// IE 10 or older => return version number
|
||||
return true
|
||||
}
|
||||
|
||||
const trident = ua.indexOf("Trident/")
|
||||
const trident = ua.indexOf('Trident/')
|
||||
if (trident > 0) {
|
||||
return true
|
||||
}
|
||||
|
||||
const edge = ua.indexOf("Edge/")
|
||||
const edge = ua.indexOf('Edge/')
|
||||
if (edge > 0) {
|
||||
// Edge (IE 12+) => return version number
|
||||
return true
|
||||
|
||||
Reference in New Issue
Block a user