From 2cae5e7a00dbbfa095edf3fa8beae6cff6a1be04 Mon Sep 17 00:00:00 2001 From: Matthew Hodgson Date: Wed, 11 Nov 2015 02:31:37 +0100 Subject: [PATCH] revert bad fix to managing history --- src/vector/index.js | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/vector/index.js b/src/vector/index.js index 115d1de9..87cbd0b6 100644 --- a/src/vector/index.js +++ b/src/vector/index.js @@ -99,15 +99,13 @@ var lastLoadedScreen = null; // This will be called whenever the SDK changes screens, // so a web page can update the URL bar appropriately. -var onNewScreen = function(screen, onlyIfBlank) { +var onNewScreen = function(screen) { if (!loaded) { lastLoadedScreen = screen; } else { - if (!onlyIfBlank || !window.location.hash) { - var hash = '#/' + screen; - lastLocationHashSet = hash; - window.location.hash = hash; - } + var hash = '#/' + screen; + lastLocationHashSet = hash; + window.location.hash = hash; } }