Fix license code box

This commit is contained in:
Ajay
2022-09-02 14:26:41 -04:00
parent f1b2ff801a
commit 39ed7ea83c

View File

@@ -23,8 +23,9 @@ async function init() {
cantAfford.appendChild(document.createTextNode(cantAffordTexts[2]));
const redeemButton = document.getElementById("redeemButton") as HTMLInputElement;
const redeemInput = document.getElementById("redeemCodeInput") as HTMLInputElement;
redeemButton.addEventListener("click", async () => {
const licenseKey = redeemButton.value;
const licenseKey = redeemInput.value;
if (await checkLicenseKey(licenseKey)) {
Config.config.payments.licenseKey = licenseKey;