Skip to content
This repository has been archived by the owner on Aug 20, 2023. It is now read-only.

Commit

Permalink
Reload settings upon receiving a page filter query
Browse files Browse the repository at this point in the history
  • Loading branch information
Mandrenkov committed Feb 13, 2022
1 parent 6bcdd35 commit c3202db
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions js/injection.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,9 @@ function onMessageListener(request, {}, sendResponse) {
if (request.message === URL_CHANGE_MESSAGE) {
manager.display();
} else if (request.message === PAGE_FILTER_QUERY_MESSAGE) {
const ignored = manager.settings.ignored();
sendResponse(ignored);
manager.settings.load(() => sendResponse(manager.settings.ignored()));
// Indicate that sendResponse() will be invoked asynchronously.
return true;
}
};

Expand Down

0 comments on commit c3202db

Please sign in to comment.