If my background.js consists of a single line of console.log, it still doesn’t work.
I tested it and I get console messages from the content script, but not from the background. Why could this be?
Baptistou Baptiste Thémine
October 22
This is normal. I guess you are placing your code in window.onload or something like that but it is never triggered in background script. You should place the code directly in background.js.
>
> //background.js
> console.log("Hello World !") //Code executed window.onload = function(){ console.log("Hello World !") //Code never executed
> };