Update jspp.js
This commit is contained in:
parent
a05cbc84ef
commit
9bb0f53ee6
1 changed files with 1 additions and 1 deletions
2
jspp.js
2
jspp.js
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue