Skip to content

Commit

Permalink
Merge pull request #20 from HugoCrd/navigator
Browse files Browse the repository at this point in the history
Fixes navigator defensive condition before changing page
  • Loading branch information
qathom committed Sep 25, 2015
2 parents 7b98b60 + 9b7f923 commit f981af4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/js/core/navigator.js
Original file line number Diff line number Diff line change
Expand Up @@ -692,7 +692,8 @@
if(currentPageObject.async) {
callClose(currentPage, pageObject.name, hash);
} else {
if(window.location.hash.indexOf(pageObject.name) === -1 && opts.useHash) {
var parsed = window.location.hash.split('/');
if(parsed[0].indexOf(pageObject.name) === -1 && opts.useHash) {
window.location.hash = hash;
}
}
Expand Down

0 comments on commit f981af4

Please sign in to comment.