diff options
Diffstat (limited to 'src/scripts/login/index.ts')
| -rw-r--r-- | src/scripts/login/index.ts | 5 |
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") { |
