Only set the hash portion of the URL for future-proofing

(imported from commit b860e6c5dde0a75c54678d6a6798611497c1db39)
This commit is contained in:
Zev Benjamin 2012-12-17 16:54:04 -05:00
parent 339ef0f139
commit 989cee3194

View File

@ -36,7 +36,7 @@ function preserve_compose(send_after_reload) {
// done before the first call to get_updates
$(function () {
var location = window.location.toString();
window.location = '#';
window.location.hash = '';
var fragment = location.substring(location.indexOf('#') + 1);
if (fragment.search("reload:") !== 0) {
return;