From e536fb2f72e4883979b451b60b12c44f5f94313c Mon Sep 17 00:00:00 2001 From: TheArcaneBrony Date: Mon, 18 Jul 2022 18:30:53 +0200 Subject: replace all var with let (reduces warnings) --- api/assets/inline-plugins/fosscord-login.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'api/assets/inline-plugins/fosscord-login.js') 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(); } -- cgit 1.5.1