Skip to content

Commit

Permalink
Update comments
Browse files Browse the repository at this point in the history
  • Loading branch information
mjackson committed Oct 6, 2015
1 parent 0308d24 commit 795c75f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions modules/createBrowserHistory.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,13 +76,15 @@ function createBrowserHistory(options) {
if (isSupported) {
window.history.pushState(historyState, null, path)
} else {
window.location.href = path // Use page reload to preserve the URL.
// Use a full-page reload to preserve the URL.
window.location.href = path
}
} else { // REPLACE
if (isSupported) {
window.history.replaceState(historyState, null, path)
} else {
window.location.replace(path) // Use page reload to preserve the URL.
// Use a full-page reload to preserve the URL.
window.location.replace(path)
}
}
}
Expand Down

0 comments on commit 795c75f

Please sign in to comment.