ft_transcendence/pong/node_modules/engine.io-client/build/esm-debug/globalThis.browser.js
2023-05-02 19:15:50 +02:00

12 lines
245 B
JavaScript

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