@trafilea/afrodita-components 6.40.0 → 6.40.1

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.
@@ -20527,6 +20527,8 @@ function usePreventVerticalScroll(ref, dragThreshold) {
20527
20527
  var sendCommandToIframe = function (command, elementId) {
20528
20528
  if (elementId === void 0) { elementId = 'vwo-video'; }
20529
20529
  var iframe = document.getElementById(elementId);
20530
+ if (!iframe)
20531
+ return;
20530
20532
  var origin = new URL(iframe === null || iframe === void 0 ? void 0 : iframe.src).origin;
20531
20533
  // TODO: Add verification to only allow specific origins
20532
20534
  // const allowedOrigins = ['https://youtube.com'];