aboutsummaryrefslogtreecommitdiffstats
path: root/src/scripts/pages/know-your-property
diff options
context:
space:
mode:
authorArpit Chakladar <arpitchakladar+git@gmail.com>2026-07-13 23:17:25 +0530
committerArpit Chakladar <arpitchakladar+git@gmail.com>2026-07-13 23:17:25 +0530
commit68777ec421d41be0da27013afd4165ae7d658d26 (patch)
tree4c1cc6af7acfeac54b2e54372944344d3f5b9a26 /src/scripts/pages/know-your-property
parent20c3b38f24d79df8843f17985a7d13533d4e0d10 (diff)
downloadbanglar-bhumi-utils-68777ec421d41be0da27013afd4165ae7d658d26.tar.gz
banglar-bhumi-utils-68777ec421d41be0da27013afd4165ae7d658d26.zip
refactor: added linting with esling and also resolved warnings for it
Diffstat (limited to 'src/scripts/pages/know-your-property')
-rw-r--r--src/scripts/pages/know-your-property/captcha.ts6
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;
});