diff options
| author | Arpit Chakladar <arpitchakladar+git@gmail.com> | 2026-08-30 01:01:48 +0530 |
|---|---|---|
| committer | Arpit Chakladar <arpitchakladar+git@gmail.com> | 2026-08-31 05:20:12 +0530 |
| commit | 42a02dea80094145bea4f07c72e84a5868d63e69 (patch) | |
| tree | 4c307e7a03b55f3ed2441cb4e759d6373b907a66 /modules/web/chromium/patch_native_host.py | |
| parent | 66e401fb6324c073a0770e0a4afe6d5cca830046 (diff) | |
| download | home-manager-config-42a02dea80094145bea4f07c72e84a5868d63e69.tar.gz home-manager-config-42a02dea80094145bea4f07c72e84a5868d63e69.zip | |
feat: replaced python scripts with lua
- using lua scripts where we previously used python for lower resource
consumption
Diffstat (limited to 'modules/web/chromium/patch_native_host.py')
| -rw-r--r-- | modules/web/chromium/patch_native_host.py | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/modules/web/chromium/patch_native_host.py b/modules/web/chromium/patch_native_host.py deleted file mode 100644 index 38afb44..0000000 --- a/modules/web/chromium/patch_native_host.py +++ /dev/null @@ -1,21 +0,0 @@ -#!/usr/bin/env python3 -import argparse -import json - -parser = argparse.ArgumentParser( - description="Set allowed_origins in a native messaging host manifest" -) -parser.add_argument("extension_id", help="Chrome extension ID") -parser.add_argument("input", help="Path to the input JSON manifest") -parser.add_argument("output", help="Path to write the patched JSON manifest") -args = parser.parse_args() - -with open(args.input) as f: - manifest = json.load(f) - -origin = f"chrome-extension://{args.extension_id}/" -manifest["allowed_origins"] = [origin] - -with open(args.output, "w") as f: - json.dump(manifest, f, indent=2) - f.write("\n") |
