1
0
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:
Yury Shkoda
2020-09-01 14:28:15 +03:00
parent 82b14fad14
commit c626c57662
28 changed files with 404 additions and 404 deletions

View File

@@ -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