globalThis.browser.js 350 B

1234567891011121314
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. exports.globalThisShim = void 0;
  4. exports.globalThisShim = (() => {
  5. if (typeof self !== "undefined") {
  6. return self;
  7. }
  8. else if (typeof window !== "undefined") {
  9. return window;
  10. }
  11. else {
  12. return Function("return this")();
  13. }
  14. })();