Skip to content

Commit

Permalink
Add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
JasonMHasperhoven committed Aug 27, 2024
1 parent 6829bf6 commit 3cba6f5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions apps/extension/src/popup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ export const popup = async <M extends PopupMessage>(
): Promise<M['response']> => {
const popupId = crypto.randomUUID();
await spawnPopup(req.type, popupId);

// this is necessary given it takes a bit of time for the popup
// to be ready to accept messages from the service worker.
await popupReady(popupId);

const response = await chrome.runtime
Expand Down

0 comments on commit 3cba6f5

Please sign in to comment.