This commit is contained in:
choelzl 2022-02-09 03:12:49 +01:00
parent 123e09306b
commit f66eb64998
Signed by: sora
GPG Key ID: A362EA0491E2EEA0

View File

@ -2,7 +2,7 @@
async function fetchSeed(id) { function fetchSeed(id) {
var HttpRequest = Packages.com.gmt2001.HttpRequest, var HttpRequest = Packages.com.gmt2001.HttpRequest,
JSONObject = Packages.org.json.JSONObject; JSONObject = Packages.org.json.JSONObject;
let request = HttpRequest.getData(HttpRequest.RequestType.GET,`https://www.geoguessr.com/api/v3/games/${id}`,{},{}); let request = HttpRequest.getData(HttpRequest.RequestType.GET,`https://www.geoguessr.com/api/v3/games/${id}`,{},{});
@ -11,7 +11,7 @@
return data; return data;
} }
}; };
async function getCountryBDC(location) { function getCountryBDC(location) {
var HttpRequest = Packages.com.gmt2001.HttpRequest, var HttpRequest = Packages.com.gmt2001.HttpRequest,
JSONObject = Packages.org.json.JSONObject; JSONObject = Packages.org.json.JSONObject;
const BDC_KEY = "067c718d2bbd4a2ba8d0645e1633cac2"; const BDC_KEY = "067c718d2bbd4a2ba8d0645e1633cac2";