Push state for new documents fixed
This commit is contained in:
parent
3acc2eb17d
commit
d69839b2fb
3 changed files with 16 additions and 2 deletions
|
@ -46,7 +46,7 @@
|
|||
window.onpopstate = function(evt) {
|
||||
var path = evt.target.location.pathname;
|
||||
if (path === '/') {
|
||||
app.newDocument();
|
||||
app.newDocument(true);
|
||||
}
|
||||
else {
|
||||
app.loadDocument(path.substring(1, path.length));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue