From 6d5baafecc33a3a6d3d720c33b5980681fd7dc41 Mon Sep 17 00:00:00 2001 From: Roy Olav Purser Date: Wed, 12 May 2021 15:10:59 +0200 Subject: [PATCH] add text to cast button --- script.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/script.js b/script.js index 3582f8b..ba076d2 100644 --- a/script.js +++ b/script.js @@ -6,7 +6,7 @@ document.addEventListener("DOMContentLoaded", () => { if(bodies.length === 1) { let body = bodies[0]; let cast = document.createElement("button"); - body.appendChild(cast); + cast.innerHtml = "Google Cast"; let cjs = new Castjs(); cast.addEventListener("click", () => { if(cjs.available) { @@ -18,6 +18,7 @@ document.addEventListener("DOMContentLoaded", () => { let video = document.createElement("video"); video.className = "video-js"; body.appendChild(video); + body.appendChild(cast); let ctype = xhr.getResponseHeader("Content-Type"); console.log(ctype); let options = {};