I made a safari web extension in Xcode 15 and after a few days like a day or two the code inside content.js just does not work even though it is show as active in the bar as appears in the screenshot
My extension replaces all website’s html with its url and Apple website on the screenshot should be just the url but that only happens the first day I install my app
The only way I find that helps is to put my code inside
browser.runtime.sendMessage({ greeting: "hello" }).then((response) => {
console.log("Received response: ", response);
});
but in my extension I want to detect for url changes which also after few days the function won’t be called




