use replaceState if available, instead of setting the hash

This commit is contained in:
ansuz
2016-11-07 11:20:30 +01:00
parent 67bf41627d
commit 303c65f2c3
5 changed files with 12 additions and 10 deletions

View File

@@ -914,9 +914,7 @@ define([
editHash = Cryptpad.getEditHashFromKeys(info.channel, secret.keys);
}
// set the hash
if (!readOnly) {
window.location.hash = editHash;
}
if (!readOnly) { Cryptpad.setHash(editHash); }
module.patchText = TextPatcher.create({
realtime: realtime,