1
0
mirror of https://github.com/seejohnrun/haste-server.git synced 2025-12-13 06:55:56 +00:00

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