aboutsummaryrefslogtreecommitdiffstats
path: root/src/scripts/pages/application-receipt
diff options
context:
space:
mode:
Diffstat (limited to 'src/scripts/pages/application-receipt')
-rw-r--r--src/scripts/pages/application-receipt/captcha.ts6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/scripts/pages/application-receipt/captcha.ts b/src/scripts/pages/application-receipt/captcha.ts
index c5bb657..94e6b0e 100644
--- a/src/scripts/pages/application-receipt/captcha.ts
+++ b/src/scripts/pages/application-receipt/captcha.ts
@@ -3,7 +3,11 @@
* stubs the form validation so the user can proceed without
* solving a CAPTCHA.
*/
+type WindowApplicationReceipt = {
+ validateForm?: () => boolean
+} & Window;
+
document.addEventListener("DOMContentLoaded", () => {
$("#werter > div > form > div:nth-child(4)").hide();
- (window as any).validateForm = () => true;
+ (window as WindowApplicationReceipt).validateForm = () => true;
});