diff --git a/js/map.js b/js/map.js index 6349f1f..df9c5f6 100644 --- a/js/map.js +++ b/js/map.js @@ -100,7 +100,10 @@ function showLocationPopup(latitude, longitude, words, accuracy) { latitude + (accuracy / 2), longitude + (accuracy / 2) ); - window.location.hash = latitude + "," + longitude; + // This prevents a bug where the app starts looping because it reacts to its own hash changes + if (accuracy == 0.0001) { + window.location.hash = latitude + "," + longitude; + } } function drawRectangle(fromlat, fromlng, tolat, tolng) {