Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
js: Only trigger reload-on-focus once.
Alex Vandiver2d218366cc14
diff --git a/static/js/reload.js b/static/js/reload.jsindex 5b8b846a416..378371235b8 100644--- a/static/js/reload.js+++ b/static/js/reload.js@@ -211,7 +211,7 @@ function do_reload_app(send_after_reload, save_pointer, save_narrow, save_compos// broken state and cause lots of confusing tracebacks. So, we// set ourselves to try reloading a bit later, both periodically// and when the user focuses the window.- $(window).on("focus", () => {+ $(window).one("focus", () => {blueslip.log("Retrying on-focus page reload");window.location.reload(true);});