From aeef841570355ca6931f012889ff4ae28eb9761a Mon Sep 17 00:00:00 2001 From: Gerome Matilla Date: Fri, 12 Jun 2020 18:52:39 +0800 Subject: [PATCH] README --- README.md | 2 ++ js/weather-settings.js | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 34d4d9f..172ea51 100644 --- a/README.md +++ b/README.md @@ -128,6 +128,8 @@ Setting up your OpenWeatherMap credential is a breeze. + If you're using firefox and you're planning to use the `geolocation`, make sure to set the value of `geo.provider.network.url` to `https://location.services.mozilla.com/v1/geolocate?key=test` in `about:config`. **Google changed its policies, so now it requires a valid API key when accessing their geolocation service. This tells us that you need a valid API key in place of** `%GOOGLE_LOCATION_SERVICE_API_KEY%`. - [Citation](https://stackoverflow.com/questions/61032115/unknown-error-acquiring-position-geolocationpositionerror-code-2-firefox-linux). ++ If you just set the startpage locally, the location permission will always pop-up even if you already accept/denied it. It's better to run it on a web server. + #### Changing the default search engine Google is the default search engine of the search bar, if you want to change it to DuckDuckGo or something: diff --git a/js/weather-settings.js b/js/weather-settings.js index ebf3bab..818eff6 100644 --- a/js/weather-settings.js +++ b/js/weather-settings.js @@ -15,7 +15,7 @@ class WeatherSettings { this._watchPositionID = 0; this._watchGeoOptions = { - enableHighAccuracy: false, + enableHighAccuracy: true, timeout: 5000, maximumAge: 0 };