Reload Manager
The Reload Manager is a built-in component during Addfox development, responsible for automatically reloading the extension after code changes.
How It Works
Why Reload Manager is Needed
Browser extensions differ from regular web apps. After code changes:
- Extension needs reload — For manifest changes to take effect
- Content Script needs re-injection — To update scripts in pages
- Service Worker needs restart — For background script updates
The browser doesn't handle these automatically, so Addfox provides the Reload Manager to automate this process.
Usage
The Reload Manager is automatically enabled during addfox dev, no extra configuration needed.
Technical Implementation
The Reload Manager is a helper extension loaded alongside the main extension:
- Main extension — Your extension under development
- Reload Manager extension — Listens to WebSocket and controls main extension
The Reload Manager extension:
- Auto-installs in dev mode
- Receives notification via WebSocket after build completes
- Sends
chrome.managementAPI commands to disable then enable main extension - Refreshes current tab when Content Script changes
Configuration
Hot Reload Port
Disable Page Refresh
Manual Reload
If auto-reload has issues, you can manually reload:
- Visit
chrome://extensions/ - Find the extension under development
- Click the refresh icon
Or use keyboard shortcuts:
- macOS:
Cmd + R(on extensions page) - Windows/Linux:
Ctrl + R

