File size: 245 Bytes
bc20498 |
1 2 3 4 5 6 7 8 9 10 11 12 |
export const globalThisShim = (() => {
if (typeof self !== "undefined") {
return self;
}
else if (typeof window !== "undefined") {
return window;
}
else {
return Function("return this")();
}
})();
|