1
0
mirror of https://github.com/sasjs/adapter.git synced 2026-01-14 23:50:06 +00:00

chore(*): change code style to remove semicolons

This commit is contained in:
Krishna Acondy
2020-09-01 11:51:17 +01:00
parent 619833db29
commit 755bf7d07c
39 changed files with 1001 additions and 1003 deletions

View File

@@ -1,34 +1,34 @@
export function isIEorEdgeOrOldFirefox() {
if (typeof window === "undefined") {
return false;
return false
}
const ua = window.navigator.userAgent;
const ua = window.navigator.userAgent
if (ua.indexOf("Firefox") > 0) {
const version = parseInt(
ua.substring(ua.lastIndexOf("Firefox/") + 8, ua.length),
10
);
return version <= 60;
)
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;
return true
}
const trident = ua.indexOf("Trident/");
const trident = ua.indexOf("Trident/")
if (trident > 0) {
return true;
return true
}
const edge = ua.indexOf("Edge/");
const edge = ua.indexOf("Edge/")
if (edge > 0) {
// Edge (IE 12+) => return version number
return true;
return true
}
// other browser
return false;
return false
}