From 7ea487be4aaf8f3b3047e2a7b3c1da80744f258b Mon Sep 17 00:00:00 2001 From: Arpit Chakladar <54011232+arpitchakladar@users.noreply.github.com> Date: Tue, 12 Mar 2024 18:39:36 +0530 Subject: Passing url of extension assets to the injected javascript code using data arguments on the script tag. --- src/scripts/functionality/application-receipt.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/scripts/functionality/application-receipt.ts') diff --git a/src/scripts/functionality/application-receipt.ts b/src/scripts/functionality/application-receipt.ts index 704d865..a86405f 100644 --- a/src/scripts/functionality/application-receipt.ts +++ b/src/scripts/functionality/application-receipt.ts @@ -12,9 +12,12 @@ if (captchaElement.length > 0) { const captchaValueElement = $("#captchaText"); const captchaFieldElement = $("[name=txtDrawText]"); - setInterval(() => { + const captcha = () => { captchaFieldElement.val("FFFFFF"); captchaValueElement.val("FFFFFF"); captchaElement.hide(); - }, 1000); + }; + + captcha(); + setInterval(captcha, 1000); } -- cgit v1.2.3