diff --git a/scripts/twchallenge.js b/scripts/twchallenge.js index ea0ae66d..b3247ef9 100644 --- a/scripts/twchallenge.js +++ b/scripts/twchallenge.js @@ -152,6 +152,7 @@ async function initChallenge() { function sendInit() { sentData = true; + if(!solverIframe || !solverIframe.contentWindow) return setTimeout(sendInit, 50); solverIframe.contentWindow.postMessage({ action: 'init', code: challengeData,