From 85465b2f3a6566a17332689f3420e36888d8d198 Mon Sep 17 00:00:00 2001 From: Roy Olav Purser Date: Wed, 12 May 2021 15:05:39 +0200 Subject: [PATCH] add button to dom --- script.js | 1 + 1 file changed, 1 insertion(+) diff --git a/script.js b/script.js index cb811b5..3582f8b 100644 --- a/script.js +++ b/script.js @@ -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) {