summaryrefslogtreecommitdiffstats
path: root/browser
diff options
context:
space:
mode:
authorwolfbeast <mcwerewolf@gmail.com>2017-09-11 18:50:38 +0200
committerwolfbeast <mcwerewolf@gmail.com>2018-02-02 19:35:20 +0100
commit100db2d197aac98e3e9e0f59e4cbe7d902373cba (patch)
treef047e88b385ae617acdcfa4f87f058c414165c67 /browser
parent6d3a0633543c2f6dfa3cb82aab519ac5fbd33e35 (diff)
downloadUXP-100db2d197aac98e3e9e0f59e4cbe7d902373cba.tar
UXP-100db2d197aac98e3e9e0f59e4cbe7d902373cba.tar.gz
UXP-100db2d197aac98e3e9e0f59e4cbe7d902373cba.tar.lz
UXP-100db2d197aac98e3e9e0f59e4cbe7d902373cba.tar.xz
UXP-100db2d197aac98e3e9e0f59e4cbe7d902373cba.zip
Switch GeoLocation to IP-API.com with minimal requests.
Diffstat (limited to 'browser')
-rw-r--r--browser/app/profile/firefox.js6
1 files changed, 1 insertions, 5 deletions
diff --git a/browser/app/profile/firefox.js b/browser/app/profile/firefox.js
index 82f8e45a5..acb5cfa5d 100644
--- a/browser/app/profile/firefox.js
+++ b/browser/app/profile/firefox.js
@@ -1249,11 +1249,7 @@ pref("plain_text.wrap_long_lines", true);
pref("dom.debug.propagate_gesture_events_through_content", false);
// The request URL of the GeoLocation backend.
-#ifdef RELEASE_OR_BETA
-pref("geo.wifi.uri", "https://www.googleapis.com/geolocation/v1/geolocate?key=%GOOGLE_API_KEY%");
-#else
-pref("geo.wifi.uri", "https://location.services.mozilla.com/v1/geolocate?key=%MOZILLA_API_KEY%");
-#endif
+pref("geo.wifi.uri", "http://ip-api.com/json/?fields=lat,lon,status,message");
#ifdef XP_MACOSX
#ifdef RELEASE_OR_BETA