aboutsummaryrefslogtreecommitdiffstats
path: root/src/client/players
diff options
context:
space:
mode:
authorRblSb <msrblsb@gmail.com>2020-03-04 04:08:22 +0300
committerRblSb <msrblsb@gmail.com>2020-03-04 04:08:22 +0300
commit4155b95cce55e1176aecb1531b9c06344a2e81b5 (patch)
tree102a7693adebde04b9c5a6529753038c8f27c510 /src/client/players
parentdc83e4842f7bb6f8899872c9693ea6170f0b1724 (diff)
Improve iframe handling
Diffstat (limited to 'src/client/players')
-rw-r--r--src/client/players/Iframe.hx3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/client/players/Iframe.hx b/src/client/players/Iframe.hx
index 37d2fe6..f0a04c5 100644
--- a/src/client/players/Iframe.hx
+++ b/src/client/players/Iframe.hx
@@ -37,6 +37,9 @@ class Iframe implements IPlayer {
video = null;
return;
}
+ if (video.firstChild.nodeName == "IFRAME") {
+ video.setAttribute("sandbox", "allow-scripts");
+ }
playerEl.appendChild(video);
}
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage