qcobjects 2.5.114-beta → 2.5.115-beta

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
  import { IQCObjectsElement, IQCObjectsShadowedElement } from "types";
2
- import { _top } from "./top";
2
+ import { _top, set } from "./top";
3
3
  import { _fireAsyncLoad, asyncLoad } from "./asyncLoad";
4
4
  import { captureFalseTouch } from "./captureFalseTouch";
5
5
  import { _Cast } from "./Cast";
@@ -520,7 +520,14 @@ import { range } from "./range";
520
520
  Class("GLOBAL", (_QC_CLASSES as any).global); // case insensitive for compatibility con old versions;
521
521
  Export(ClassFactory("GLOBAL"));
522
522
  }
523
- Export(global);
523
+
524
+ if (isBrowser && typeof window !== "undefined"){
525
+ set("global", window);
526
+ } else if (typeof global !== "undefined" ){
527
+ set("global", global);
528
+ } else if (typeof globalThis !== "undefined") {
529
+ set("global", globalThis);
530
+ }
524
531
 
525
532
  loadSDK();
526
533
  })(_top);