Fix popup not getting the newest information
This commit is contained in:
parent
51872621b7
commit
eed5aba0ec
@ -62,6 +62,7 @@ const Sidebar = () => {
|
||||
setOrigin(url.origin);
|
||||
};
|
||||
browser.tabs.onUpdated.addListener(listener);
|
||||
listener();
|
||||
return () => {
|
||||
browser.tabs.onUpdated.removeListener(listener);
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user