From 6e11ce9303d568c7097781f9687b6cb4339058b1 Mon Sep 17 00:00:00 2001 From: Nikita <6025342+nikita-kun@users.noreply.github.com> Date: Wed, 25 Dec 2024 09:56:02 +0100 Subject: [PATCH] [Fix] Disable message event listener on exception --- index.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/index.html b/index.html index af9d4d4..0f43e85 100755 --- a/index.html +++ b/index.html @@ -385,10 +385,11 @@

window.addEventListener('message', (event) => { if (event.origin === window.location.origin && event.data.dataOrderException) { document.body.innerHTML += document.getElementsByTagName('noscript')[0].textContent; + window.removeEventListener('message', this); throw event.data.dataOrderException; } }); - + while (true){ if (search) { Array.from(links.querySelectorAll('summary')).map((s) => {