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

View File

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