mirror of https://github.com/zulip/zulip.git
Make it possible to paste a #narrow URL into a new tab
(imported from commit 0a2ac3e7100627fd02874b02c1b5abe6d4b58c77)
This commit is contained in:
parent
470ff676e6
commit
f4ddf4412b
|
@ -31,6 +31,7 @@ function hashchanged() {
|
|||
|
||||
exports.initialize = function () {
|
||||
window.onhashchange = hashchanged;
|
||||
hashchanged();
|
||||
};
|
||||
|
||||
return exports;
|
||||
|
|
|
@ -36,12 +36,12 @@ function preserve_compose(send_after_reload) {
|
|||
// done before the first call to get_updates
|
||||
$(function () {
|
||||
var location = window.location.toString();
|
||||
window.location.hash = '';
|
||||
util.reset_favicon();
|
||||
var fragment = location.substring(location.indexOf('#') + 1);
|
||||
if (fragment.search("reload:") !== 0) {
|
||||
return;
|
||||
}
|
||||
window.location.hash = '';
|
||||
util.reset_favicon();
|
||||
|
||||
fragment = fragment.replace(/^reload:/, "");
|
||||
var keyvals = fragment.split("+");
|
||||
|
|
Loading…
Reference in New Issue