diff options
| author | Arpit Chakladar <54011232+arpitchakladar@users.noreply.github.com> | 2025-06-14 01:40:18 +0530 |
|---|---|---|
| committer | Arpit Chakladar <54011232+arpitchakladar@users.noreply.github.com> | 2025-06-14 01:40:18 +0530 |
| commit | 54467df36805eabf9113d1bb84d7434b331cd167 (patch) | |
| tree | a13b48386e20bf69e7ede0bfff4715c17b90549d /config | |
| parent | 7164ef595147d997068b953d0e8bd19add0db5f9 (diff) | |
| download | banglar-bhumi-utils-54467df36805eabf9113d1bb84d7434b331cd167.tar.gz banglar-bhumi-utils-54467df36805eabf9113d1bb84d7434b331cd167.zip | |
Successfully performing OCR on the captcha image and autofilling it for login.
Diffstat (limited to 'config')
| -rw-r--r-- | config/webpack.config.js | 14 | ||||
| -rw-r--r-- | config/webpack/plugins/create-manifest-webpack-plugin/index.js | 1 | ||||
| -rw-r--r-- | config/webpack/plugins/create-manifest-webpack-plugin/manifest-template.json | 5 |
3 files changed, 15 insertions, 5 deletions
diff --git a/config/webpack.config.js b/config/webpack.config.js index 4b21245..8fd3f15 100644 --- a/config/webpack.config.js +++ b/config/webpack.config.js @@ -193,10 +193,16 @@ const sharedModulesConfiguration = merge( entry: sharedModuleEntries, plugins: [ new CopyPlugin({ - patterns: [{ - from: path.resolve(ROOT_DIR, "static"), - to: "./" - }] + patterns: [ + { + from: path.resolve("static"), + to: "./", + }, + { + from: path.resolve("src/offscreen"), + to: "./offscreen", + }, + ], }), new CreateInjectedSharedModulesPlugin({ injectedSharedModulesImportedCount, diff --git a/config/webpack/plugins/create-manifest-webpack-plugin/index.js b/config/webpack/plugins/create-manifest-webpack-plugin/index.js index 2c9ab8e..6f1e2be 100644 --- a/config/webpack/plugins/create-manifest-webpack-plugin/index.js +++ b/config/webpack/plugins/create-manifest-webpack-plugin/index.js @@ -123,3 +123,4 @@ class CreateManifestPlugin { } export default CreateManifestPlugin; + diff --git a/config/webpack/plugins/create-manifest-webpack-plugin/manifest-template.json b/config/webpack/plugins/create-manifest-webpack-plugin/manifest-template.json index d1d29f4..52496b6 100644 --- a/config/webpack/plugins/create-manifest-webpack-plugin/manifest-template.json +++ b/config/webpack/plugins/create-manifest-webpack-plugin/manifest-template.json @@ -1,7 +1,7 @@ { "manifest_version": 3, "name": "Banglar Bhumi Utils", - "permissions": ["scripting", "declarativeNetRequest"], + "permissions": ["offscreen", "scripting", "declarativeNetRequest"], "description": "A chrome extension to improve functionality of the banglarbhumi.gov.in website.", "icons": { "512": "icon512.png" @@ -12,5 +12,8 @@ "enabled": true, "path": "rules.json" }] + }, + "content_security_policy": { + "extension_pages": "script-src 'self' 'wasm-unsafe-eval'; object-src 'self';" } } |
