]> code.citadel.org Git - citadel.git/commitdiff
ok, that function needed to be async
authorArt Cancro <ajc@citadel.org>
Sat, 15 Jan 2022 20:37:44 +0000 (15:37 -0500)
committerArt Cancro <ajc@citadel.org>
Sat, 15 Jan 2022 20:37:44 +0000 (15:37 -0500)
webcit-ng/static/js/login.js

index ccf1936d2558404b0c6b10c88caec35d76d12173..bf2216b8f5402971009f11b84857c64d01325235 100644 (file)
@@ -34,7 +34,9 @@ function display_login_screen(any_message) {
 
 // When the user elects to log out, we just call /ctdl/a/logout and let the system flush the session.
 // When we go back to ctdl_startup() it will detect that we are no longer logged in, and do the right thing.
-function logout() {
+//function logout() {
+logout = async() => {
+
        response = await fetch("/ctdl/a/logout");
        ctdl_startup();
 }