Fix popup not getting the newest information

This commit is contained in:
Kuba Orlik 2022-04-11 14:31:27 +02:00
parent 51872621b7
commit eed5aba0ec
1 changed files with 1 additions and 0 deletions

View File

@ -62,6 +62,7 @@ const Sidebar = () => {
setOrigin(url.origin);
};
browser.tabs.onUpdated.addListener(listener);
listener();
return () => {
browser.tabs.onUpdated.removeListener(listener);
};