add button to dom
This commit is contained in:
parent
9f3ff35ce5
commit
85465b2f3a
@ -6,6 +6,7 @@ document.addEventListener("DOMContentLoaded", () => {
|
|||||||
if(bodies.length === 1) {
|
if(bodies.length === 1) {
|
||||||
let body = bodies[0];
|
let body = bodies[0];
|
||||||
let cast = document.createElement("button");
|
let cast = document.createElement("button");
|
||||||
|
body.appendChild(cast);
|
||||||
let cjs = new Castjs();
|
let cjs = new Castjs();
|
||||||
cast.addEventListener("click", () => {
|
cast.addEventListener("click", () => {
|
||||||
if(cjs.available) {
|
if(cjs.available) {
|
||||||
|
Loading…
Reference in New Issue
Block a user