commit d8eb8d80d0d32972f67df3a430319ad4179ec94d
parent ef1803fbf88a454172fa4cdeb2859d64a9ed20ee
Author: Jacob R. Edwards <jacob@jacobedwards.org>
Date: Fri, 11 Oct 2024 22:45:22 -0700
Redirect to /register when userService fails in /services
There could be other reasons the request fails, but I'm not going
to worry about that now.
Diffstat:
1 file changed, 4 insertions(+), 0 deletions(-)
diff --git a/files/services/main.js b/files/services/main.js
@@ -28,6 +28,10 @@ function main() {
})
}
})
+ .catch(function() {
+ // Assume they need to signup for now
+ window.location.href = "/register"
+ })
}
function chooseService(service) {