I call sendMessage a few times from the content script, but it seems like service worker is inactive at the same time and the listener it's not getting triggered.
Any solution?
I've tried to listen to history state change to keep it "awake" `
chrome.webNavigation.onHistoryStateUpdated.addListener((details) => {
console.log('wake me up');
});
`