add button to dom

This commit is contained in:
Roy Olav Purser 2021-05-12 15:05:39 +02:00
parent 9f3ff35ce5
commit 85465b2f3a
Signed by: roypur
GPG Key ID: E14D26A036F21656

View File

@ -6,6 +6,7 @@ document.addEventListener("DOMContentLoaded", () => {
if(bodies.length === 1) {
let body = bodies[0];
let cast = document.createElement("button");
body.appendChild(cast);
let cjs = new Castjs();
cast.addEventListener("click", () => {
if(cjs.available) {