fix(extension): masquer le diagnostic en builds Store v0.4.6
All checks were successful
CI / Lint, Unit Tests & Build (push) Successful in 5m47s
CI / Deploy production (on server) (push) Successful in 23s

- Ajout du flag ALLOW_DIAGNOSTICS dans sidepanel.js.
- En prod (builds Chrome Store / Firefox) ALLOW_DIAGNOSTICS = false :
  le bouton ? et le panneau diagnostic sont masqués, logDiag reste silencieux.
- Mise à jour des scripts de build pour appliquer ALLOW_DIAGNOSTICS = false.
- Bump version 0.4.6.
This commit is contained in:
Antigravity
2026-07-18 17:21:40 +00:00
parent 4946c0d44a
commit 86505659cf
55 changed files with 111 additions and 59 deletions

View File

@@ -73,10 +73,15 @@ function copyFiles(src, dest, exclude = []) {
// Read and modify sidepanel.js for production
function processSidepanelJs(content) {
return content.replace(
/const ALLOW_INSTANCE_CONFIG = true/,
'const ALLOW_INSTANCE_CONFIG = false'
)
return content
.replace(
/const ALLOW_INSTANCE_CONFIG = true/,
'const ALLOW_INSTANCE_CONFIG = false'
)
.replace(
/const ALLOW_DIAGNOSTICS = true/,
'const ALLOW_DIAGNOSTICS = false'
)
}
// Read and modify manifest.json for production