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.

landing-page: Remove onunload hack.

Anders Kaseorge9df82ac3192
diff --git a/static/js/portico/landing-page.js b/static/js/portico/landing-page.js
index 780561f2281..099148b14c4 100644
--- a/static/js/portico/landing-page.js
+++ b/static/js/portico/landing-page.js
@@ -251,9 +251,3 @@ $(() => {
render_tabs();
}
});
-
-// Prevent Firefox from bfcaching the page.
-// According to https://developer.mozilla.org/en-US/docs/DOM/window.onunload
-// Using this event handler in your page prevents Firefox from caching the
-// page in the in-memory bfcache (backward/forward cache).
-$(window).on("unload", () => {});