aboutsummaryrefslogtreecommitdiffstats
path: root/src/scripts/login/index.ts
diff options
context:
space:
mode:
authorArpit Chakladar <arpitchakladar+git@gmail.com>2026-07-13 19:04:11 +0530
committerArpit Chakladar <arpitchakladar+git@gmail.com>2026-07-13 19:04:11 +0530
commite2a62b68f3a2fc4414ff27a7908f4ee7e93b6142 (patch)
tree2482c7d145baa3bd52bb68dd78d346119bfc05b0 /src/scripts/login/index.ts
parent51a443e5d027ced43a6d7c8759e7aae6fd90839f (diff)
downloadbanglar-bhumi-utils-e2a62b68f3a2fc4414ff27a7908f4ee7e93b6142.tar.gz
banglar-bhumi-utils-e2a62b68f3a2fc4414ff27a7908f4ee7e93b6142.zip
refactor: some more refactoring and removing unused or depticated code
Diffstat (limited to 'src/scripts/login/index.ts')
-rw-r--r--src/scripts/login/index.ts5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/scripts/login/index.ts b/src/scripts/login/index.ts
index dcf43e3..80348e2 100644
--- a/src/scripts/login/index.ts
+++ b/src/scripts/login/index.ts
@@ -1,5 +1,3 @@
-import { interceptPost, interceptGet } from "@/shared/intercept-jquery-ajax";
-
/**
* Pre-processes a CAPTCHA image on a canvas by removing grayish
* background noise while preserving dark pixels, producing a clean
@@ -64,7 +62,8 @@ function prepareCaptcha(ctx: CanvasRenderingContext2D, width: number, height: nu
ctx.putImageData(imgData, 0, 0);
}
-const observer = new MutationObserver((mutationsList, obs) => {
+// TODO: use observe dom instead
+const observer = new MutationObserver((mutationsList, _obs) => {
for (const mutation of mutationsList) {
for (const node of mutation.addedNodes) {
if ((node as any).nodeType === 1 && (node as any).id === "loginform") {