Files
discord-clone/node_modules/unenv/runtime/polyfill/globalThis.mjs
2023-01-03 09:29:04 -06:00

17 lines
318 B
JavaScript

function getGlobal() {
if (typeof globalThis !== "undefined") {
return globalThis;
}
if (typeof self !== "undefined") {
return self;
}
if (typeof window !== "undefined") {
return window;
}
if (typeof global !== "undefined") {
return global;
}
return {};
}
export default getGlobal();