globel.js 248 B

1234567891011
  1. let g;
  2. g = function () {
  3. if ("object" == typeof globalThis) return globalThis;
  4. try {
  5. return this || new Function("return this")();
  6. } catch (e) {
  7. if ("object" == typeof window) return window;
  8. }
  9. }();
  10. export default g