mirror of
https://github.com/zulip/zulip.git
synced 2025-11-05 06:23:38 +00:00
hashchange: Extract func which checks current hash is in RT.
This commit is contained in:
@@ -44,6 +44,10 @@ function maybe_hide_recent_topics() {
|
||||
return false;
|
||||
}
|
||||
|
||||
exports.in_recent_topics_hash = function () {
|
||||
return ["recent_topics", "#", ""].includes(window.location.hash);
|
||||
};
|
||||
|
||||
exports.changehash = function (newhash) {
|
||||
if (changing_hash) {
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user