Don't update urlhash during the walkthrough (related: #1795)

Users are likely reloading the page (e.g with Cmd-R) and getting put back into
Three Rivers, thinking they are still in the tutorial.
This commit is contained in:
Bryan Housel
2015-11-06 01:02:05 -05:00
parent 9cce9970aa
commit 9cb53a1117
+1
View File
@@ -40,6 +40,7 @@ iD.behavior.Hash = function(context) {
};
function update() {
if (context.inIntro()) return;
var s1 = formatter(context.map());
if (s0 !== s1) location.replace(s0 = s1); // don't recenter the map!
}