From d5912283ac07cb0f802e2ee0f14d8416275e2038 Mon Sep 17 00:00:00 2001 From: Bryan Housel Date: Thu, 30 Mar 2017 18:07:11 -0400 Subject: [PATCH] Don't allow geolocate while in walkthrough --- modules/ui/geolocate.js | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/ui/geolocate.js b/modules/ui/geolocate.js index b552a7cf8..b63a9de85 100644 --- a/modules/ui/geolocate.js +++ b/modules/ui/geolocate.js @@ -13,6 +13,7 @@ export function uiGeolocate(context) { function click() { + if (context.inIntro()) return; context.enter(modeBrowse(context)); context.container().call(locating); navigator.geolocation.getCurrentPosition(success, error, geoOptions);