mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2026-01-31 14:51:13 +03:00
Fix license code box
This commit is contained in:
@@ -23,8 +23,9 @@ async function init() {
|
|||||||
cantAfford.appendChild(document.createTextNode(cantAffordTexts[2]));
|
cantAfford.appendChild(document.createTextNode(cantAffordTexts[2]));
|
||||||
|
|
||||||
const redeemButton = document.getElementById("redeemButton") as HTMLInputElement;
|
const redeemButton = document.getElementById("redeemButton") as HTMLInputElement;
|
||||||
|
const redeemInput = document.getElementById("redeemCodeInput") as HTMLInputElement;
|
||||||
redeemButton.addEventListener("click", async () => {
|
redeemButton.addEventListener("click", async () => {
|
||||||
const licenseKey = redeemButton.value;
|
const licenseKey = redeemInput.value;
|
||||||
|
|
||||||
if (await checkLicenseKey(licenseKey)) {
|
if (await checkLicenseKey(licenseKey)) {
|
||||||
Config.config.payments.licenseKey = licenseKey;
|
Config.config.payments.licenseKey = licenseKey;
|
||||||
|
|||||||
Reference in New Issue
Block a user