1 files changed, 1 insertions, 1 deletions
diff --git a/api/assets/inline-plugins/fosscord-login.js b/api/assets/inline-plugins/fosscord-login.js
index 38f82200..9191dad4 100644
--- a/api/assets/inline-plugins/fosscord-login.js
+++ b/api/assets/inline-plugins/fosscord-login.js
@@ -6,7 +6,7 @@
// fosscord-login.css after login is successful, but not if you reload the page after logging in. This script is to remove fosscord-login.css in
// that specific case.
-var token = JSON.parse(localStorage.getItem("token"));
+let token = JSON.parse(localStorage.getItem("token"));
if (!token && location.pathname !== "/login" && location.pathname !== "/register") {
document.getElementById("logincss").remove();
}
|