diff options
| author | Arpit Chakladar <54011232+arpitchakladar@users.noreply.github.com> | 2023-03-23 14:26:18 +0530 |
|---|---|---|
| committer | Arpit Chakladar <54011232+arpitchakladar@users.noreply.github.com> | 2023-03-23 14:26:18 +0530 |
| commit | 3b29d138bee5e98c9536d3606de3e4b5378338f0 (patch) | |
| tree | baddef6b68e970e54404cbfa694811b2aecb8bd1 /src/scripts/autofill-otps.ts | |
| parent | b7b840319aaf37cd48461e7a578cc859454a29e3 (diff) | |
| download | banglar-bhumi-utils-3b29d138bee5e98c9536d3606de3e4b5378338f0.tar.gz banglar-bhumi-utils-3b29d138bee5e98c9536d3606de3e4b5378338f0.zip | |
Some minor changes.
Diffstat (limited to 'src/scripts/autofill-otps.ts')
| -rw-r--r-- | src/scripts/autofill-otps.ts | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/src/scripts/autofill-otps.ts b/src/scripts/autofill-otps.ts deleted file mode 100644 index 140504c..0000000 --- a/src/scripts/autofill-otps.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); - }; -}); |
