Update 'twitch/chatguessr.js'

This commit is contained in:
sora 2022-04-21 21:19:52 +02:00
parent f56823bc23
commit d2a079fcde

View File

@ -8,10 +8,12 @@
json = new JSONObject('{}');
var request = HttpRequest.getData(HttpRequest.RequestType.GET,'https://www.geoguessr.com/api/v3/games/'+id,json.toString(),header);
if (request.success) {
var data = new JSONObject(request.content)
return JSON.parse(data);
var data = new JSONObject(request.content)
return JSON.parse(data);
}
return {};
};
function getCountryBDC(location) {
var HttpRequest = Packages.com.gmt2001.HttpRequest,
HashMap = Packages.java.util.HashMap,