Skip to content

Commit

Permalink
Refresh matches when the pop-up is displayed.
Browse files Browse the repository at this point in the history
  • Loading branch information
coddingtonbear committed Mar 7, 2024
1 parent c5a07b0 commit 600f86d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/popup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -498,7 +498,7 @@ if (!document.getElementById(ROOT_CONTAINER_ID)) {
}

useEffect(() => {
if (!searchEnabled) {
if (!searchEnabled || !popupDisplayed) {
return;
}

Expand All @@ -518,7 +518,7 @@ if (!document.getElementById(ROOT_CONTAINER_ID)) {
}

handle();
}, [pageUrl, searchEnabled]);
}, [pageUrl, searchEnabled, popupDisplayed]);

useEffect(() => {
if (!sandboxReady || presets === undefined) {
Expand Down

0 comments on commit 600f86d

Please sign in to comment.