aboutsummaryrefslogtreecommitdiffstats
path: root/src/scripts/autofill-otps
diff options
context:
space:
mode:
Diffstat (limited to 'src/scripts/autofill-otps')
-rw-r--r--src/scripts/autofill-otps/grievance-application.ts22
1 files changed, 0 insertions, 22 deletions
diff --git a/src/scripts/autofill-otps/grievance-application.ts b/src/scripts/autofill-otps/grievance-application.ts
deleted file mode 100644
index 140504c..0000000
--- a/src/scripts/autofill-otps/grievance-application.ts
+++ /dev/null
@@ -1,22 +0,0 @@
-document.addEventListener("DOMContentLoaded", () => {
- const proxiedPost = $.post;
-
- $.post = function() {
- let element: HTMLInputElement | null = null;
- if (arguments[0].endsWith("MISPetitionSmsSend.action")) {
- element = document.querySelector("input[name=mobile_Code]") as HTMLInputElement;
- } else if (arguments[0].endsWith("MISPetitionEmailSend.action")) {
- element = document.querySelector("input[name=txtemail_Code]") as HTMLInputElement;
- }
-
- if (element) {
- const callback = arguments[2];
- arguments[2] = (data: any) => {
- element!.value = data?.messageShow || "";
- callback(data);
- };
- }
-
- return proxiedPost.apply(this, Array.from(arguments) as any);
- };
-});