mirror of
https://github.com/CyberMind-FR/secubox-deb.git
synced 2026-07-29 18:36:55 +00:00
Real cause of the broken extension: api.js and background.js BOTH did `const ext = …`. In a Firefox event page the background.scripts array loads them into one shared scope (same via importScripts in a Chromium SW), and popup.js's `const ext` collided with api.js's in the popup page realm too — 'redeclaration of const ext' aborts the script. web-ext lint misses it because it never concatenates/executes the scripts. Now only api.js declares `const ext`; background.js and popup.js use `api.ext`. Also (defensive + Chromium-correct): replace the SVG action/extension icon with rasterised PNGs (48/128) and keep the SVG out of the package, so Firefox never renders SVG in chrome UI. Bump to v0.1.1; the /wg/toolbox.xpi endpoint + fetch helper + docs point at webext-v0.1.1. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| android-toolbox | ||
| webext-toolbox | ||