Update jspp.js

This commit is contained in:
Sam Sneed 2024-05-31 21:26:18 +00:00 committed by GitHub
parent a05cbc84ef
commit 9bb0f53ee6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -508,7 +508,7 @@ class JSPlusPlus {
}
createButton(elementID, text, attributes = {}) {
let elem = createElement("button", elementID);
let elem = htmlFront.createElement("button", elementID);
elem.innerText = `${text}`
for (const [name, value] of Object.entries(attributes)) {
elem.setAttribute(name, value);