Fix ReferenceError
This commit is contained in:
parent
3092a3f89d
commit
82f6f9698e
|
@ -75,7 +75,7 @@
|
||||||
const redirect = setInterval(() => {
|
const redirect = setInterval(() => {
|
||||||
countdown.textContent = `Redirecting in ${timer--} ...`
|
countdown.textContent = `Redirecting in ${timer--} ...`
|
||||||
if (timer === -1) {
|
if (timer === -1) {
|
||||||
window.location.href = redirectURL;
|
window.location.href = redirectUrl;
|
||||||
}
|
}
|
||||||
}, 1000)
|
}, 1000)
|
||||||
}
|
}
|
||||||
|
@ -87,12 +87,12 @@
|
||||||
statusElement.removeAttribute("hidden")
|
statusElement.removeAttribute("hidden")
|
||||||
statusElement.classList.add("yes")
|
statusElement.classList.add("yes")
|
||||||
label.textContent = "Paid"
|
label.textContent = "Paid"
|
||||||
if (redirectURL) redirect()
|
if (redirectUrl) redirect()
|
||||||
} else if (new Date(body.ExpiresAt) <= new Date()) {
|
} else if (new Date(body.ExpiresAt) <= new Date()) {
|
||||||
statusElement.removeAttribute("hidden")
|
statusElement.removeAttribute("hidden")
|
||||||
statusElement.classList.add("no")
|
statusElement.classList.add("no")
|
||||||
label.textContent = "Expired"
|
label.textContent = "Expired"
|
||||||
if (redirectURL) redirect()
|
if (redirectUrl) redirect()
|
||||||
}
|
}
|
||||||
}, 1000)
|
}, 1000)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue