Fix a bug

This commit is contained in:
Skylar Ittner 2021-11-12 23:00:40 -07:00
parent feed3d2918
commit b9b61cae00

View File

@ -100,7 +100,10 @@ function showLocationPopup(latitude, longitude, words, accuracy) {
latitude + (accuracy / 2), latitude + (accuracy / 2),
longitude + (accuracy / 2) longitude + (accuracy / 2)
); );
// 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; window.location.hash = latitude + "," + longitude;
}
} }
function drawRectangle(fromlat, fromlng, tolat, tolng) { function drawRectangle(fromlat, fromlng, tolat, tolng) {