Skip to content

Reconnect when the browser comes online#313

Open
naosu616-debug wants to merge 1 commit into
sindresorhus:mainfrom
naosu616-debug:reconnect-when-online
Open

Reconnect when the browser comes online#313
naosu616-debug wants to merge 1 commit into
sindresorhus:mainfrom
naosu616-debug:reconnect-when-online

Conversation

@naosu616-debug
Copy link
Copy Markdown

@naosu616-debug naosu616-debug commented May 14, 2026

Fixes #132

This restores connection status listeners in the background worker. When the browser reports that it is online again, the extension runs an update immediately instead of waiting for the next alarm. Going offline still renders the existing offline badge state.

An older fix handled this in the previous background page. The current Manifest V3 worker no longer registers those connection status listeners, so this restores that behavior in the active code path.

Tests:

  • npm run test:js
  • npm run build
  • git diff --check

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Notifier stays offline despite regaining connection

1 participant