I’ve tried referencing www.pinterest.com "which is the website I want to access" but it keeps giving me this message as shown in the image above what should I do to make it work or is it even possible here is a photohshoped image of what I want it to look like
2
Answers
With the little information you’ve provided, there’s only so much I can do to help you. A great place for information on web extension development is always MDN. Perhaps their article on how to add a popup or their example extension can help you.
There’s also an example by Opera if you want to try theirs. Speaking of Opera, perhaps their guide on debugging extensions in Opera helps. Have you double-checked you are pointing to the right file?
It would be really helpful if you could provide a version of the extension with just the necessary code to cause your issue.
You can’t open random pages within the sidebar/popup; only pages packaged with your extension can be opened here. You can however open the page in the main browser window (for example by adding ‘target="_blank"’ to links in your side panel or by updating window.location.href (through a service worker).