@quintype/components 3.3.2-check-sub-error.9 → 3.3.2-check-sub-error.11

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.
package/dist/cjs/index.js CHANGED
@@ -4625,15 +4625,17 @@ var AccessTypeBase = /*#__PURE__*/function (_React$Component) {
4625
4625
  if (accessTypeKey && !isATScriptAlreadyPresent && !global.AccessType && global.document) {
4626
4626
  console.log("enetred load script if block ");
4627
4627
  var accessTypeScript = document.createElement("script");
4628
+
4629
+ accessTypeScript.onload = function () {
4630
+ _this.props.onATGlobalSet && _this.props.onATGlobalSet();
4631
+ callback();
4632
+ };
4633
+
4628
4634
  accessTypeScript.setAttribute("src", accessTypeHost);
4629
4635
  accessTypeScript.setAttribute("id", "AccessTypeScript");
4630
4636
  accessTypeScript.setAttribute("data-accessType-script", "1");
4631
4637
  accessTypeScript.async = 1;
4632
4638
 
4633
- accessTypeScript.onload = function () {
4634
- return callback();
4635
- };
4636
-
4637
4639
  accessTypeScript.onerror = function () {
4638
4640
  callback();
4639
4641
  console.log(" load s cript failed");
@@ -55,15 +55,17 @@ var AccessTypeBase = /*#__PURE__*/function (_React$Component) {
55
55
  if (accessTypeKey && !isATScriptAlreadyPresent && !global.AccessType && global.document) {
56
56
  console.log("enetred load script if block ");
57
57
  var accessTypeScript = document.createElement("script");
58
+
59
+ accessTypeScript.onload = function () {
60
+ _this.props.onATGlobalSet && _this.props.onATGlobalSet();
61
+ callback();
62
+ };
63
+
58
64
  accessTypeScript.setAttribute("src", accessTypeHost);
59
65
  accessTypeScript.setAttribute("id", "AccessTypeScript");
60
66
  accessTypeScript.setAttribute("data-accessType-script", "1");
61
67
  accessTypeScript.async = 1;
62
68
 
63
- accessTypeScript.onload = function () {
64
- return callback();
65
- };
66
-
67
69
  accessTypeScript.onerror = function () {
68
70
  callback();
69
71
  console.log(" load s cript failed");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quintype/components",
3
- "version": "3.3.2-check-sub-error.9",
3
+ "version": "3.3.2-check-sub-error.11",
4
4
  "description": "Components to help build Quintype Node.js apps",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/es/index.js",