-
Notifications
You must be signed in to change notification settings - Fork 141
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
✨ [RUMF-1396] add a Disconnect alert
With Manifest V3, connection between the devtools panel and the background service worker can be lost when the service worker is refreshed. I experienced it very often while working on the extension (every time I changed the background script). To help UX/DX, this commit adds an alert to allow refreshing easily the devtools panel.
- Loading branch information
1 parent
c1e8ef4
commit 308b331
Showing
4 changed files
with
56 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
import { createListenAction, createSendAction } from '../common/actions' | ||
import type { BackgroundActions, PopupActions } from '../common/types' | ||
|
||
export const sendAction = createSendAction<BackgroundActions>() | ||
const { sendAction, setOnDisconnect } = createSendAction<BackgroundActions>() | ||
export { sendAction, setOnDisconnect } | ||
export const listenAction = createListenAction<PopupActions>() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters