globalThis.browser.js 230 B

1234567891011
  1. export default (() => {
  2. if (typeof self !== "undefined") {
  3. return self;
  4. }
  5. else if (typeof window !== "undefined") {
  6. return window;
  7. }
  8. else {
  9. return Function("return this")();
  10. }
  11. })();