Update 'twitch/chatguessr.js'
This commit is contained in:
parent
f56823bc23
commit
d2a079fcde
@ -8,10 +8,12 @@
|
|||||||
json = new JSONObject('{}');
|
json = new JSONObject('{}');
|
||||||
var request = HttpRequest.getData(HttpRequest.RequestType.GET,'https://www.geoguessr.com/api/v3/games/'+id,json.toString(),header);
|
var request = HttpRequest.getData(HttpRequest.RequestType.GET,'https://www.geoguessr.com/api/v3/games/'+id,json.toString(),header);
|
||||||
if (request.success) {
|
if (request.success) {
|
||||||
var data = new JSONObject(request.content)
|
var data = new JSONObject(request.content)
|
||||||
return JSON.parse(data);
|
return JSON.parse(data);
|
||||||
}
|
}
|
||||||
|
return {};
|
||||||
};
|
};
|
||||||
|
|
||||||
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,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user