set className

This commit is contained in:
Roy Olav Purser 2021-05-12 10:35:15 +02:00
parent ef89f57c83
commit 46950eb6d0
Signed by: roypur
GPG Key ID: E14D26A036F21656

View File

@ -6,6 +6,7 @@ document.addEventListener("DOMContentLoaded", () => {
xhr.onreadystatechange = () => { xhr.onreadystatechange = () => {
let video = document.createElement("video"); let video = document.createElement("video");
video.id = "video-player"; video.id = "video-player";
video.className = "video-js";
body.appendChild(video); body.appendChild(video);
let ctype = xhr.getResponseHeader("Content-Type"); let ctype = xhr.getResponseHeader("Content-Type");
let player = videojs("video-player"); let player = videojs("video-player");