From 19e4a78a4a9b5b3112ede2bb17106973b9e49b7f Mon Sep 17 00:00:00 2001 From: choelzl Date: Thu, 10 Feb 2022 10:44:01 +0100 Subject: [PATCH] WIP --- twitch/chatguessr.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/twitch/chatguessr.js b/twitch/chatguessr.js index 6ac7ebf..2123eae 100644 --- a/twitch/chatguessr.js +++ b/twitch/chatguessr.js @@ -144,7 +144,8 @@ seed = {}; sendData('guesses',JSON.stringify(guesses)); }else if(action.equalsIgnoreCase('refresh')){ - var newseed = fetchSeed(args[1]); + if(seed.token == undefined) return; + var newseed = fetchSeed(seed.token); if(newseed.player.guesses.length() > seed.player.guesses.length()){ $.setIniDbBoolean('chatguessr', 'isOpen',false) //NEW ROUND /Score