summary refs log tree commit diff
path: root/api/assets/inline-plugins/autoRegister.js
diff options
context:
space:
mode:
authorTheArcaneBrony <myrainbowdash949@gmail.com>2022-07-18 18:30:53 +0200
committerTheArcaneBrony <myrainbowdash949@gmail.com>2022-08-09 23:28:27 +0200
commite536fb2f72e4883979b451b60b12c44f5f94313c (patch)
tree9c7fccb12c5aeec560d3c223a3b6e969e8d95cd9 /api/assets/inline-plugins/autoRegister.js
parentUpdate User.ts (diff)
downloadserver-e536fb2f72e4883979b451b60b12c44f5f94313c.tar.xz
replace all var with let (reduces warnings)
Diffstat (limited to 'api/assets/inline-plugins/autoRegister.js')
-rw-r--r--api/assets/inline-plugins/autoRegister.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/api/assets/inline-plugins/autoRegister.js b/api/assets/inline-plugins/autoRegister.js

index bb0b903d..7bca39f8 100644 --- a/api/assets/inline-plugins/autoRegister.js +++ b/api/assets/inline-plugins/autoRegister.js
@@ -44,7 +44,7 @@ function _generateName() { return `${prefix.random()}${suffix.random()}`; } -var token = JSON.parse(localStorage.getItem("token")); +let token = JSON.parse(localStorage.getItem("token")); if (!token && location.pathname !== "/login" && location.pathname !== "/register") { fetch(`${window.GLOBAL_ENV.API_ENDPOINT}/auth/register`, { method: "POST",