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