Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

reload: Remove obsolete location.reload(true) usage.

Anders Kaseorg0be5cc232c7d
diff --git a/web/src/reload.js b/web/src/reload.js
index 77d8fc25a86..69d056cac02 100644
--- a/web/src/reload.js
+++ b/web/src/reload.js
@@ -160,13 +160,13 @@ function do_reload_app(send_after_reload, save_compose, message_html) {
$(window).one("focus", () => {
blueslip.log("Retrying on-focus page reload");
- window.location.reload(true);
+ window.location.reload();
});
}, 5000);
function retry_reload() {
blueslip.log("Retrying page reload due to 30s timer");
- window.location.reload(true);
+ window.location.reload();
}
util.call_function_periodically(retry_reload, 30000);
@@ -176,7 +176,7 @@ function do_reload_app(send_after_reload, save_compose, message_html) {
blueslip.error("Failed to clean up before reloading", undefined, error);
}
- window.location.reload(true);
+ window.location.reload();
}
export function initiate({