Skip to content

Commit

Permalink
Merge pull request #13 from melvincarvalho/master
Browse files Browse the repository at this point in the history
Fixes back button in some browsers, closes #12
  • Loading branch information
melvincarvalho authored May 1, 2018
2 parents cc1758d + 2693ad4 commit 5c5748e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ if (typeof window !== 'undefined') {
window.panes = panes
}

window.onpopstate = function(event) {
window.document.outline.GotoSubject($rdf.sym(window.document.location.href), true, undefined, true, undefined)
}

panes.UI = UI

// Allow require('mashlib') in the databrowser
Expand Down

0 comments on commit 5c5748e

Please sign in to comment.