Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
reload: Handle early attempts at reload when loading the app.
Aman Agrawal8299506e7aad
diff --git a/web/src/reload.js b/web/src/reload.jsindex 04e4360e204..e3836ff8e37 100644--- a/web/src/reload.js+++ b/web/src/reload.js@@ -40,6 +40,13 @@ function preserve_state(send_after_reload, save_pointer, save_narrow, save_comporeturn;}+ if (!message_lists.home) {+ // If we haven't yet initialized the message_lists module,+ // we can't preserve state across reloads.+ blueslip.log("Can't preserve state; message_lists not yet initialized.");+ return;+ }+let url = "#reload:send_after_reload=" + Number(send_after_reload);url += "+csrf_token=" + encodeURIComponent(csrf_token);