Hi,
So I have this in my service worker:
chrome.webNavgation.onCompleted.addListener((e) => {
console.log(`webNavigation.onCompleted called with ${e}`);
});
It's throwing this error:
Uncaught TypeError: Cannot read properties of undefined (reading 'onCompleted')
When I print the chrome object to the console I see that webNavigation isn't initialized. (See the image below) I can initialize it from the console, then Chrome lets me add event handlers, but it's still not called. I've added the "webNavigation" permission to the sw. Is there something else I'm supposed to do or is this a bug?
Thanks.