X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/b7d7781c5d333ec618a97fb0cb9d814d83fb3098..3c1371adaf8cd9f2f67fd5e2be3b66c3fa42b56a:/app/assets/javascripts/welcome.js diff --git a/app/assets/javascripts/welcome.js b/app/assets/javascripts/welcome.js index 88b153af2..aa28e99e9 100644 --- a/app/assets/javascripts/welcome.js +++ b/app/assets/javascripts/welcome.js @@ -29,12 +29,14 @@ $(document).ready(function() { e.preventDefault(); $('.start-mapping').addClass('loading'); - // handle firefox's weird implementation - // https://bugzilla.mozilla.org/show_bug.cgi?id=675533 - window.setTimeout(manualEdit, 4000); - if (navigator.geolocation) { + // handle firefox's weird implementation + // https://bugzilla.mozilla.org/show_bug.cgi?id=675533 + window.setTimeout(manualEdit, 4000); + navigator.geolocation.getCurrentPosition(geoSuccess, manualEdit); + } else { + manualEdit(); } }); }