fix(pwa): move inline SW registration script to external file to satisfy CSP
CI / Build & Test (push) Successful in 2m56s

The inline <script> for service worker registration was blocked by the
extension's script-src 'self' Content Security Policy. Extracted it to
register-sw.js and replaced the inline block with a <script src>.
Added register-sw.js to web_accessible_resources.
This commit is contained in:
Raven Scott
2026-03-01 02:30:00 -05:00
parent 5e40b14a91
commit d587441cf5
3 changed files with 6 additions and 5 deletions
+1
View File
@@ -55,6 +55,7 @@
"dashboard/dashboard.html",
"dashboard/manifest.webmanifest",
"dashboard/sw.js",
"dashboard/register-sw.js",
"dashboard/screenshots/*.png",
"dashboard/dashboard.css",
"dashboard/data/*.js",