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

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg 2024-09-18 11:19:26 -07:00 committed by Tim Abbott
parent 16d37eb80a
commit 0be5cc232c
1 changed files with 3 additions and 3 deletions

View File

@ -160,13 +160,13 @@ function do_reload_app(send_after_reload, save_compose, message_html) {
$(window).one("focus", () => { $(window).one("focus", () => {
blueslip.log("Retrying on-focus page reload"); blueslip.log("Retrying on-focus page reload");
window.location.reload(true); window.location.reload();
}); });
}, 5000); }, 5000);
function retry_reload() { function retry_reload() {
blueslip.log("Retrying page reload due to 30s timer"); blueslip.log("Retrying page reload due to 30s timer");
window.location.reload(true); window.location.reload();
} }
util.call_function_periodically(retry_reload, 30000); 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); blueslip.error("Failed to clean up before reloading", undefined, error);
} }
window.location.reload(true); window.location.reload();
} }
export function initiate({ export function initiate({