aboutsummaryrefslogtreecommitdiffstats
path: root/src/client/players/Iframe.hx
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/players/Iframe.hx')
-rw-r--r--src/client/players/Iframe.hx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/players/Iframe.hx b/src/client/players/Iframe.hx
index 8a2e06e..6614f9d 100644
--- a/src/client/players/Iframe.hx
+++ b/src/client/players/Iframe.hx
@@ -46,7 +46,6 @@ class Iframe implements IPlayer {
public function loadVideo(item:VideoItem):Void {
removeVideo();
video = document.createDivElement();
- video.id = "videoplayer";
video.innerHTML = item.url; // actually data
if (!isValidIframe(video)) {
video = null;
@@ -55,6 +54,7 @@ class Iframe implements IPlayer {
if (video.firstChild.nodeName == "IFRAME") {
video.setAttribute("sandbox", "allow-scripts");
}
+ video.firstElementChild.id = "videoplayer";
playerEl.appendChild(video);
}
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage