Skip to content

Commit 2cae5e7

Browse files
committed
revert bad fix to managing history
1 parent 2fff6f4 commit 2cae5e7

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

src/vector/index.js

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -99,15 +99,13 @@ var lastLoadedScreen = null;
9999

100100
// This will be called whenever the SDK changes screens,
101101
// so a web page can update the URL bar appropriately.
102-
var onNewScreen = function(screen, onlyIfBlank) {
102+
var onNewScreen = function(screen) {
103103
if (!loaded) {
104104
lastLoadedScreen = screen;
105105
} else {
106-
if (!onlyIfBlank || !window.location.hash) {
107-
var hash = '#/' + screen;
108-
lastLocationHashSet = hash;
109-
window.location.hash = hash;
110-
}
106+
var hash = '#/' + screen;
107+
lastLocationHashSet = hash;
108+
window.location.hash = hash;
111109
}
112110
}
113111

0 commit comments

Comments
 (0)