This commit is contained in:
choelzl 2022-02-09 03:17:32 +01:00
parent 4c91662ec8
commit d06fcb7ae2
Signed by: sora
GPG Key ID: A362EA0491E2EEA0

View File

@ -5,7 +5,7 @@
function fetchSeed(id) { function fetchSeed(id) {
var HttpRequest = Packages.com.gmt2001.HttpRequest, var HttpRequest = Packages.com.gmt2001.HttpRequest,
HashMap = Packages.java.util.HashMap, HashMap = Packages.java.util.HashMap,
JSONObject = Packages.org.json.JSONObject JSONObject = Packages.org.json.JSONObject,
header = new HashMap(0), header = new HashMap(0),
json = new JSONObject('{}'); json = new JSONObject('{}');
let request = HttpRequest.getData(HttpRequest.RequestType.GET,`https://www.geoguessr.com/api/v3/games/${id}`,json.toString(),header); let request = HttpRequest.getData(HttpRequest.RequestType.GET,`https://www.geoguessr.com/api/v3/games/${id}`,json.toString(),header);
@ -17,7 +17,7 @@
function getCountryBDC(location) { function getCountryBDC(location) {
var HttpRequest = Packages.com.gmt2001.HttpRequest, var HttpRequest = Packages.com.gmt2001.HttpRequest,
HashMap = Packages.java.util.HashMap, HashMap = Packages.java.util.HashMap,
JSONObject = Packages.org.json.JSONObject JSONObject = Packages.org.json.JSONObject,
header = new HashMap(0), header = new HashMap(0),
json = new JSONObject('{}'); json = new JSONObject('{}');
const BDC_KEY = "067c718d2bbd4a2ba8d0645e1633cac2"; const BDC_KEY = "067c718d2bbd4a2ba8d0645e1633cac2";