@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.
- package/build/index.esm.js +2 -0
- package/build/index.esm.js.map +1 -1
- package/build/index.js +2 -0
- package/build/index.js.map +1 -1
- package/package.json +1 -1
package/build/index.js
CHANGED
|
@@ -20553,6 +20553,8 @@ function usePreventVerticalScroll(ref, dragThreshold) {
|
|
|
20553
20553
|
var sendCommandToIframe = function (command, elementId) {
|
|
20554
20554
|
if (elementId === void 0) { elementId = 'vwo-video'; }
|
|
20555
20555
|
var iframe = document.getElementById(elementId);
|
|
20556
|
+
if (!iframe)
|
|
20557
|
+
return;
|
|
20556
20558
|
var origin = new URL(iframe === null || iframe === void 0 ? void 0 : iframe.src).origin;
|
|
20557
20559
|
// TODO: Add verification to only allow specific origins
|
|
20558
20560
|
// const allowedOrigins = ['https://youtube.com'];
|