@bigbinary/neeto-molecules 3.16.19 → 3.16.20
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/ProductEmbed.js
CHANGED
|
@@ -1394,8 +1394,10 @@ var EmbedRenderer = function EmbedRenderer(_ref) {
|
|
|
1394
1394
|
var script = document.createElement("script");
|
|
1395
1395
|
script.id = SCRIPT_ID;
|
|
1396
1396
|
script.src = embedScriptLink;
|
|
1397
|
+
script.onload = function () {
|
|
1398
|
+
return setIsScriptLoading(false);
|
|
1399
|
+
};
|
|
1397
1400
|
document.head.appendChild(script);
|
|
1398
|
-
setIsScriptLoading(false);
|
|
1399
1401
|
};
|
|
1400
1402
|
var updateCustomization = function updateCustomization(props) {
|
|
1401
1403
|
return setCustomizations(function (prevState) {
|