Skip to content

Commit 9128b83

Browse files
committed
Add storage-based state synchronization for extension components
Replace direct port communication with chrome.storage API for state sync between devtools, background, content, and injected scripts. Add storage manager, state sync utilities, and webextension-polyfill dependency. Update manifest to use module service worker.
1 parent f80884b commit 9128b83

13 files changed

Lines changed: 469 additions & 353 deletions

File tree

memory-bank

package-lock.json

Lines changed: 8 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@
3232
"lucide-react": "^0.540.0",
3333
"react": "^19.1.0",
3434
"react-dom": "^19.1.1",
35-
"superjson": "^2.2.2"
35+
"superjson": "^2.2.2",
36+
"webextension-polyfill": "^0.12.0"
3637
},
3738
"devDependencies": {
3839
"@eslint/js": "^9.33.0",

public/manifest.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@
1515
}
1616
],
1717
"background": {
18-
"service_worker": "background.js"
18+
"service_worker": "background.js",
19+
"type": "module"
1920
},
2021
"web_accessible_resources": [
2122
{

0 commit comments

Comments
 (0)