aboutsummaryrefslogtreecommitdiffstats
path: root/src/scripts
diff options
context:
space:
mode:
authorArpit Chakladar <54011232+arpitchakladar@users.noreply.github.com>2023-03-25 09:21:11 +0530
committerArpit Chakladar <54011232+arpitchakladar@users.noreply.github.com>2023-03-25 09:36:24 +0530
commitd6682a1ed9acd31dbfdb9e645cc8230c61a268c3 (patch)
tree63c5577b701c377896f4aa2985adf67f7aa3d679 /src/scripts
parentfeac7acb91a78b117241abdd0a5d80f778e15f06 (diff)
downloadbanglar-bhumi-utils-d6682a1ed9acd31dbfdb9e645cc8230c61a268c3.tar.gz
banglar-bhumi-utils-d6682a1ed9acd31dbfdb9e645cc8230c61a268c3.zip
Disable minification in development.
Diffstat (limited to 'src/scripts')
-rw-r--r--src/scripts/functionality/application-receipt.ts4
-rw-r--r--src/scripts/optimize.ts8
2 files changed, 6 insertions, 6 deletions
diff --git a/src/scripts/functionality/application-receipt.ts b/src/scripts/functionality/application-receipt.ts
index 7fdf4d0..878b910 100644
--- a/src/scripts/functionality/application-receipt.ts
+++ b/src/scripts/functionality/application-receipt.ts
@@ -1,4 +1,4 @@
-const receiptFormElement = document.querySelector("#form_reprint_request") as HTMLElement;
+const receiptFormElement = document.getElementById("form_reprint_request") as HTMLElement;
receiptFormElement.removeAttribute("id");
receiptFormElement.removeAttribute("name");
receiptFormElement.removeAttribute("onsubmit");
@@ -10,7 +10,7 @@ let captchaElement = document.querySelector("#werter > div > div:nth-child(4)")
if (captchaElement) {
captchaElement = captchaElement!;
- const captchaValueElement = document.querySelector("#captchaText") as HTMLInputElement;
+ const captchaValueElement = document.getElementById("captchaText") as HTMLInputElement;
const captchaFieldElement = document.querySelector("[name=txtDrawText]") as HTMLInputElement;
const removeCaptcha = () => {
captchaFieldElement.value = captchaValueElement.value;
diff --git a/src/scripts/optimize.ts b/src/scripts/optimize.ts
index 4acf66f..8389c53 100644
--- a/src/scripts/optimize.ts
+++ b/src/scripts/optimize.ts
@@ -1,7 +1,7 @@
-import { modifyDOM, DOMModifier } from "@/utils/modify-dom";
+import { modifyDOM } from "@/utils/modify-dom";
modifyDOM([
- new DOMModifier("head > script:nth-child(34)", { src: null }),
- new DOMModifier("head > script:nth-child(36)", { src: null, innerHTML: "$.prototype.nivoSlider = () => {};" }),
- new DOMModifier("head > script:nth-child(43)", { src: null })
+ ["head > script:nth-child(34)", { src: null }],
+ ["head > script:nth-child(36)", { src: null, innerHTML: "$.prototype.nivoSlider = () => {};" }],
+ ["head > script:nth-child(43)", { src: null }]
]);