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.

hashchange: Remove unused function.

Aman Agrawaldabc8fa99fed
diff --git a/static/js/hashchange.js b/static/js/hashchange.js
index 35567adafd2..b051285edfc 100644
--- a/static/js/hashchange.js
+++ b/static/js/hashchange.js
@@ -349,17 +349,6 @@ function hashchanged(from_reload, e) {
return ret;
}
-export function replace_hash(hash) {
- if (!window.history.replaceState) {
- // We may have strange behavior with the back button.
- blueslip.warn("browser does not support replaceState");
- return;
- }
-
- const url = get_full_url(hash);
- window.history.replaceState(null, null, url);
-}
-
export function initialize() {
$(window).on("hashchange", (e) => {
hashchanged(false, e.originalEvent);