commit 0e257bb9eb110d283abb42982c3294d3df6b872e
parent 979b94005c532c465d840cfa8ae7fc90da32153f
Author: ugrnm <ultrageranium@bleu255.com>
Date: Sun Jul 5 00:08:45 +0200
set attributes properly
Diffstat:1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/muc/xpubplayer.js b/muc/xpubplayer.js
@@ -4,7 +4,9 @@
if(document.querySelector(selector)!=null) {
var chat_title = document.getElementsByClassName("chat-area col")[0];
- var element = document.createElement("<div class=\"video-container\" id=\"videoemboddy\">");
+ var element = document.createElement("<div>");
+ element.setAttribute("id", "videoemboddy");
+ element.setAttribute("class", "video-container");
element.innerHTML = '<div class="" id="vid1"><video-js id=vid1 width=100% height=100% class="video-js vjs-layout-large vjs-controls-enabled vjs-default-skin vjs-paused vid1-dimensions vjs-controls-enabled vjs-workinghover vjs-v7 vjs-user-active vjs-live" controls data-setup=\'{"controls": true}\'><source src="https://stream.lilimit.com:8081/hls1/stwst.m3u8" type="application/x-mpegURL"></video-js></div>';