diff options
| author | RblSb <msrblsb@gmail.com> | 2020-03-04 04:08:22 +0300 |
|---|---|---|
| committer | RblSb <msrblsb@gmail.com> | 2020-03-04 04:08:22 +0300 |
| commit | 4155b95cce55e1176aecb1531b9c06344a2e81b5 (patch) | |
| tree | 102a7693adebde04b9c5a6529753038c8f27c510 /src/client/players/Iframe.hx | |
| parent | dc83e4842f7bb6f8899872c9693ea6170f0b1724 (diff) | |
Improve iframe handling
Diffstat (limited to 'src/client/players/Iframe.hx')
| -rw-r--r-- | src/client/players/Iframe.hx | 3 |
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); } |
