1
0
mirror of https://github.com/sasjs/adapter.git synced 2026-01-05 03:30:05 +00:00

fix(*): do not use polyfill when running on Node.js

This commit is contained in:
Krishna Acondy
2020-08-18 08:25:40 +01:00
parent a409d8cdb6
commit 8192f69f67
2 changed files with 6 additions and 1 deletions

View File

@@ -1,4 +1,7 @@
export function isIEorEdgeOrOldFirefox() {
if (typeof window === "undefined") {
return false;
}
const ua = window.navigator.userAgent;
if (ua.indexOf("Firefox") > 0) {