diff --git a/twitch/chatguessr.js b/twitch/chatguessr.js index 6de94fb..db9ed98 100644 --- a/twitch/chatguessr.js +++ b/twitch/chatguessr.js @@ -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,