summary refs log tree commit diff
path: root/api/client_test
diff options
context:
space:
mode:
authorLobo Metalúrgico <43734867+LoboMetalurgico@users.noreply.github.com>2021-10-09 10:39:26 -0300
committerLobo Metalúrgico <43734867+LoboMetalurgico@users.noreply.github.com>2021-10-09 10:39:26 -0300
commit3a5c511f1b59b8f607e7b99cd1d3edb7d13a3100 (patch)
treea1d007e766c2c48cbc5e45032c667a63821914ae /api/client_test
parent(api): fix route name (diff)
parentMerge branch 'master' of http://github.com/fosscord/fosscord-server (diff)
downloadserver-3a5c511f1b59b8f607e7b99cd1d3edb7d13a3100.tar.xz
Merge remote-tracking branch 'upstream/master' into milestoneV1/routes/implement/emojis
Diffstat (limited to 'api/client_test')
-rw-r--r--api/client_test/index.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/api/client_test/index.html b/api/client_test/index.html

index fb2e0a2d..41d41598 100644 --- a/api/client_test/index.html +++ b/api/client_test/index.html
@@ -47,7 +47,7 @@ // Auto register guest account: const token = JSON.parse(localStorage.getItem("token")); - if (!token) { + if (!token && location.pathname !== "/login" && location.pathname !== "/register") { fetch(`${window.GLOBAL_ENV.API_ENDPOINT}/auth/register`, { method: "POST", headers: { "content-type": "application/json" },