From 9bb0f53ee6ce7d91ea7f05976ef965506344b8b6 Mon Sep 17 00:00:00 2001 From: Sam Sneed <163201376+sam-sneed@users.noreply.github.com> Date: Fri, 31 May 2024 21:26:18 +0000 Subject: [PATCH] Update jspp.js --- jspp.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jspp.js b/jspp.js index e9d30be..7b4ed76 100644 --- a/jspp.js +++ b/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);