JS-SDK: Restored frame options: allowfullscreen and border. Added allow property for storage access

This commit is contained in:
Ilya Oleshko 2023-12-18 14:35:55 +03:00
parent d531377db8
commit f8206b54cf

View File

@ -197,12 +197,9 @@
iframe.name = config.name;
iframe.id = config.frameId;
//iframe.loading = "lazy";
iframe.frameBorder = 0;
iframe.allowFullscreen = true;
iframe.setAttribute("allowfullscreen", "");
iframe.setAttribute("allow", "autoplay");
//iframe.referrerpolicy = "unsafe-url";
iframe.setAttribute("allow", "storage-access");
if (config.type == "mobile") {
iframe.style.position = "fixed";