handle browser setting the text as undefined

This commit is contained in:
2023-10-04 06:27:00 +00:00
parent 22d79165b2
commit b8e60396b8
2 changed files with 5 additions and 4 deletions

View File

@@ -98,7 +98,8 @@ const displayFingerprints = () => {
// On Page Load...
$(() => {
if (localStorage.getItem("tty_token")) {
var token = localStorage.getItem("tty_token");
if (token && token !== "undefined") {
window.location.href = "/auth";
}
// Override domain