Skip to content

Commit

Permalink
[NIKE] - Remove redirect from setting locale
Browse files Browse the repository at this point in the history
  • Loading branch information
rtunazzz committed Aug 18, 2021
1 parent 1d02313 commit 31fc58c
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions web/templates/nike-setup.html
Original file line number Diff line number Diff line change
Expand Up @@ -109,17 +109,12 @@ <h1>Nike Link Setup</h1>
locale +
";Expires=Tue, 01 Jan 2099 00:00:00 GMT;path=/";
var s =
"Locale successfully set to <b>" + selected.textContent + "</b>!";
"Locale successfully set to <b>" +
selected.textContent +
"</b>! 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}} <b>" + selected.textContent + "</b>!";
location.replace(
"{{ .RedirectBase }}" + locale + "{{ .RedirectURI }}"
);
}, 250);
}
</script>
</body>
Expand Down

0 comments on commit 31fc58c

Please sign in to comment.