X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/b7d7781c5d333ec618a97fb0cb9d814d83fb3098..2dd89f2d0806b249287d19e63e4392e6d21a847b:/app/assets/javascripts/welcome.js?ds=sidebyside 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(); } }); }