From 82f6f9698ef6652687a7d8756a31a73a916340d2 Mon Sep 17 00:00:00 2001 From: ekzyis Date: Sat, 9 Sep 2023 22:52:51 +0200 Subject: [PATCH] Fix ReferenceError --- pages/invoice.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pages/invoice.html b/pages/invoice.html index edd8f23..9bedfd2 100644 --- a/pages/invoice.html +++ b/pages/invoice.html @@ -75,7 +75,7 @@ const redirect = setInterval(() => { countdown.textContent = `Redirecting in ${timer--} ...` if (timer === -1) { - window.location.href = redirectURL; + window.location.href = redirectUrl; } }, 1000) } @@ -87,12 +87,12 @@ statusElement.removeAttribute("hidden") statusElement.classList.add("yes") label.textContent = "Paid" - if (redirectURL) redirect() + if (redirectUrl) redirect() } else if (new Date(body.ExpiresAt) <= new Date()) { statusElement.removeAttribute("hidden") statusElement.classList.add("no") label.textContent = "Expired" - if (redirectURL) redirect() + if (redirectUrl) redirect() } }, 1000) }