Update example, remove not necessary dom on load.mjs

This commit is contained in:
WeebDataHoarder
2025-04-01 07:33:42 +02:00
parent 35067a4329
commit 72dff2ce16
2 changed files with 29 additions and 14 deletions

View File

@@ -5,12 +5,6 @@ let _target;
let _difficulty;
async function setup(config) {
const status = document.getElementById('status');
const image = document.getElementById('image');
const title = document.getElementById('title');
const spinner = document.getElementById('spinner');
const { challenge, target, difficulty } = await fetch(config.Path + "/make-challenge", { method: "POST" })
.then(r => {
if (!r.ok) {