export const globalThisShim = (() => { | |
if (typeof self !== "undefined") { | |
return self; | |
} | |
else if (typeof window !== "undefined") { | |
return window; | |
} | |
else { | |
return Function("return this")(); | |
} | |
})(); | |
export const globalThisShim = (() => { | |
if (typeof self !== "undefined") { | |
return self; | |
} | |
else if (typeof window !== "undefined") { | |
return window; | |
} | |
else { | |
return Function("return this")(); | |
} | |
})(); | |