@cloudbase/cals 1.2.21-alpha.4 → 1.2.21-alpha.5

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.
@@ -554,7 +554,9 @@ function loadProdMetaScript(bundleName, filename) {
554
554
  </body>
555
555
  </html>
556
556
  `;
557
- iframe.contentWindow.postMessage({ filename, bundleName, moduleName }, window.location.origin);
557
+ iframe.addEventListener('load', () => {
558
+ iframe.contentWindow.postMessage({ filename, bundleName, moduleName }, window.location.origin);
559
+ });
558
560
  document.body.appendChild(iframe);
559
561
  }
560
562
  catch (e) {
@@ -550,7 +550,9 @@ function loadProdMetaScript(bundleName, filename) {
550
550
  </body>
551
551
  </html>
552
552
  `;
553
- iframe.contentWindow.postMessage({ filename, bundleName, moduleName }, window.location.origin);
553
+ iframe.addEventListener('load', () => {
554
+ iframe.contentWindow.postMessage({ filename, bundleName, moduleName }, window.location.origin);
555
+ });
554
556
  document.body.appendChild(iframe);
555
557
  }
556
558
  catch (e) {