aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAjay <[email protected]>2022-09-02 14:26:41 -0400
committerAjay <[email protected]>2022-09-02 14:26:41 -0400
commit39ed7ea83cd80635b294b06c86ece85bac3d3d61 (patch)
tree7e41eac8390d0f36bf61ad7460bb5902277e8483
parentf1b2ff801ac2a427b9aff4bb3e121cb3efe110f8 (diff)
downloadSponsorBlock-39ed7ea83cd80635b294b06c86ece85bac3d3d61.tar.gz
SponsorBlock-39ed7ea83cd80635b294b06c86ece85bac3d3d61.zip
Fix license code box
-rw-r--r--src/upsell.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/upsell.ts b/src/upsell.ts
index faa94a1d..7ea7f277 100644
--- a/src/upsell.ts
+++ b/src/upsell.ts
@@ -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;