I have this setting in my manifest.json:
here is the code in the content-script.js file:
console.log('this is the content script.');
console.log('the following tab was clicked:', tab);
if I click on the popup button and open the Chrome extension, and click “inspect” and open Dev Tools, I don’t see any content scripts listed:
However, now it gets really weird, because Chrome says that it can’t find the manifest.json file:
However, it’s clear that it could find my background.js script, which is declared in my manifest.json file:
As you can see, the options page, and background page are recognized. So it seems like Chrome does recognize/detect the manifest file.
Anybody have an idea of what might be wrong? How can I get my content-scripts to be loaded?