Merge pull request #58 from xwiki-labs/replaceState

use replaceState if available
This commit is contained in:
ansuz
2016-11-07 15:08:49 +01:00
committed by GitHub
5 changed files with 12 additions and 10 deletions

View File

@@ -601,9 +601,7 @@ define([
}
// set the hash
if (!readOnly) {
window.location.hash = editHash;
}
if (!readOnly) { Cryptpad.replaceHash(editHash); }
Cryptpad.getPadTitle(function (err, title) {
if (err) {