diff --git a/IMPLEMENTATION.md b/IMPLEMENTATION.md index f1f321d..85e6ff1 100644 --- a/IMPLEMENTATION.md +++ b/IMPLEMENTATION.md @@ -1,141 +1 @@ -# Extension Lifetime - -## StatusManager - -The StatusManager (`background/StatusManager.ts`) keeps a bridge instance active throughout the lifetime of the extension. It listens for `main:/serviceUp`, `main:/serviceDown` and `main:/receiverStatus` messages to keep track of and update a list of receiver devices that can be provided to other extension components. It also emits `serviceUp`, `serviceDown` and `statusUpdate` events containing relevant data. - -If the StatusManager unexpectedly loses its bridge connection, it will automatically reconnect with a 10-second interval. - -## Shim Initialization - -The `shim/content.ts` content script is registered for all pages. It creates an empty `window.chrome` object in the page context since some sites may expect it to exist. It also intercepts any `src` attribute changes on `