From 9c09edd7afbf73a06e01bc4ee5741ab7e855fa5e Mon Sep 17 00:00:00 2001 From: Tim Abbott Date: Fri, 19 May 2023 13:40:17 -0700 Subject: [PATCH] ui_init: Fix loading spectators view. 18578cc5da0046fcb6523edbec73d1792ab7d720 broke the success code path. --- web/src/ui_init.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/src/ui_init.js b/web/src/ui_init.js index 6ac1f7c5ca..cf5e685213 100644 --- a/web/src/ui_init.js +++ b/web/src/ui_init.js @@ -735,7 +735,7 @@ $(async () => { channel.post({ url: "/json/register", data, - resolve, + success: resolve, error(xhr) { blueslip.error("Spectator failed to register", { status: xhr.status,