From 31fc58c29cd479e13ba6f626f6f8eb1660abb49b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Artur=20Hn=C3=A1t?= Date: Wed, 18 Aug 2021 14:32:55 +0200 Subject: [PATCH] [NIKE] - Remove redirect from setting locale --- web/templates/nike-setup.html | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/web/templates/nike-setup.html b/web/templates/nike-setup.html index f1fbf29..ad0cfa7 100644 --- a/web/templates/nike-setup.html +++ b/web/templates/nike-setup.html @@ -109,17 +109,12 @@

Nike Link Setup

locale + ";Expires=Tue, 01 Jan 2099 00:00:00 GMT;path=/"; var s = - "Locale successfully set to " + selected.textContent + "!"; + "Locale successfully set to " + + selected.textContent + + "! You may close this tab now."; var d = document.querySelector("div.selecting"); d.innerHTML = s; d.setAttribute("style", "color: #66ff00;"); - setTimeout(() => { - d.innerHTML = - "Redirecting to {{.Site}} " + selected.textContent + "!"; - location.replace( - "{{ .RedirectBase }}" + locale + "{{ .RedirectURI }}" - ); - }, 250); }