Push state for new documents fixed

This commit is contained in:
John Crepezzi 2011-11-18 16:37:18 -05:00
parent 3acc2eb17d
commit d69839b2fb
3 changed files with 16 additions and 2 deletions

View file

@ -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));