This commit is contained in:
Gerome Matilla 2020-06-13 06:41:43 +08:00
parent aeef841570
commit ab3582987b
2 changed files with 6 additions and 3 deletions

View File

@ -126,10 +126,13 @@ Setting up your OpenWeatherMap credential is a breeze.
**Note:** **Note:**
+ 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'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%`. <sup>[Citation](https://stackoverflow.com/questions/61032115/unknown-error-acquiring-position-geolocationpositionerror-code-2-firefox-linux).</sup>
+ If you're on mobile, make sure to enable your GPS and allow the location permission if you want to use `geolocation`.
+ 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. + 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 #### 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: Google is the default search engine of the search bar, if you want to change it to DuckDuckGo or something:

View File

@ -101,8 +101,8 @@ class WeatherSettings {
// You denied the permission request // You denied the permission request
_deniedGeolocation = () => { _deniedGeolocation = () => {
alert(`You denied the request to access your location. As a consequence for your action, ` + alert(`Location access denied! If you're on mobile, make sure to`+
`you need to allow it on your browser's settings if you want to use the geolocation functionality. You can just use the City Mode, though.`); ` enable your GPS and allow the location permission on your browser's settings.`)
} }