From f090407ea932b5767f98e9f5d391f142355ccbc8 Mon Sep 17 00:00:00 2001 From: dimden <26517362+dimdenGD@users.noreply.github.com> Date: Wed, 28 Aug 2024 19:11:13 +0300 Subject: [PATCH] fix --- scripts/twchallenge.js | 1 + 1 file changed, 1 insertion(+) 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,