From aa7d86dbf28ece5a90c3848262d6a75b45370cfe Mon Sep 17 00:00:00 2001 From: Arpit Chakladar <54011232+arpitchakladar@users.noreply.github.com> Date: Sun, 28 Jul 2024 09:49:26 +0530 Subject: Added ability to download mouza maps. Fixed view khatian and plot information download. --- config/webpack/plugins/create-manifest-webpack-plugin/index.js | 4 ++-- config/webpack/utils/build-file.js | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) (limited to 'config') diff --git a/config/webpack/plugins/create-manifest-webpack-plugin/index.js b/config/webpack/plugins/create-manifest-webpack-plugin/index.js index 92c3096..8dc0ae4 100644 --- a/config/webpack/plugins/create-manifest-webpack-plugin/index.js +++ b/config/webpack/plugins/create-manifest-webpack-plugin/index.js @@ -57,10 +57,10 @@ class CreateManifestPlugin { delete arrangedScripts["*"]["document_start"]; for (const scriptPath in arrangedScripts) { - const matches = [`*://banglarbhumi.gov.in/BanglarBhumi/${scriptPath}`]; + const matches = [`*://banglarbhumi.gov.in/BanglarBhumi/${scriptPath}*`]; if (scriptPath === "Home") - matches.push(`*://banglarbhumi.gov.in/BanglarBhumi/${scriptPath}.action`); + matches.push(`*://banglarbhumi.gov.in/BanglarBhumi/${scriptPath}.action*`); for (const scriptRuntime in arrangedScripts[scriptPath]) { manifest.content_scripts.push({ diff --git a/config/webpack/utils/build-file.js b/config/webpack/utils/build-file.js index 6d8fc85..2ab8d86 100644 --- a/config/webpack/utils/build-file.js +++ b/config/webpack/utils/build-file.js @@ -4,7 +4,8 @@ module.exports.getFileName = (fileName, prefix, justHash = false) => { let hash = crypto .createHash("md5") .update(`${prefix}-${fileName}`) - .digest("hex").substring(16); + .digest("hex") + .substring(16); if (production) { return hash; -- cgit v1.2.3