chrome.webNavigation.onHistoryStateUpdated.addListener(
(details) => {
console.log(details, 'testing listener');
},
{
url: [{ hostContains: 'youtube' }],
}
);
I have the permission for it. I go to youtube.com, then click on a video and this event fires 3 times, each and every single time, all the information from details is the same EXCEPT for url, and that's only sometimes. How are we supposed to work with this?
The url property somehow doesn't change, even though navigation has been triggered. image for reference