From 0e840d827d9f095a6d0f091567d3be1f00ddcfdc Mon Sep 17 00:00:00 2001 From: sora Date: Sat, 23 Apr 2022 21:09:38 +0200 Subject: [PATCH] Update 'twitch/chatguessr.js' --- twitch/chatguessr.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/twitch/chatguessr.js b/twitch/chatguessr.js index 55b8db0..e174f0c 100644 --- a/twitch/chatguessr.js +++ b/twitch/chatguessr.js @@ -4,14 +4,12 @@ var HttpRequest = Packages.com.gmt2001.HttpRequest, HashMap = Packages.java.util.HashMap, JSONObject = Packages.org.json.JSONObject, - header = new HashMap(0), - json = new JSONObject('{}'); - var request = HttpRequest.getData(HttpRequest.RequestType.GET,'https://www.geoguessr.com/api/v3/games/'+id,json.toString(),header); + header = new HashMap(0); + var request = HttpRequest.getData(HttpRequest.RequestType.GET,'https://www.geoguessr.com/api/v3/games/'+id,'',header); if (request.success) { var data = new JSONObject(request.content) return JSON.parse(data); } - return {}; }; function getCountryBDC(location) {