diff options
Diffstat (limited to 'src/scripts/pages/know-your-property')
| -rw-r--r-- | src/scripts/pages/know-your-property/captcha.ts | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/scripts/pages/know-your-property/captcha.ts b/src/scripts/pages/know-your-property/captcha.ts index 3abdf08..e304342 100644 --- a/src/scripts/pages/know-your-property/captcha.ts +++ b/src/scripts/pages/know-your-property/captcha.ts @@ -3,7 +3,11 @@ * stubs the captcha validation so the user can proceed without * solving a CAPTCHA. */ +type WindowKnowYourProperty = { + validateCaptcha?: () => boolean +} & Window; + document.addEventListener("DOMContentLoaded", () => { $("#khatianPlotDiv > div:nth-child(6) > div").hide(); - (window as any).validateCaptcha = () => true; + (window as WindowKnowYourProperty).validateCaptcha = () => true; }); |
