Google Chrome / Firefox do not see extension output in console

后端 未结 3 1056
情深已故
情深已故 2020-11-21 04:58

I am trying to test sample code for web extension for browsers. But, it doesn\'t work. I checked the console for Google Chrome and also for Firefox. It doesn\'t print anythi

3条回答
  •  一生所求
    2020-11-21 05:39

    Yes for Chrome you have to click the background page link mentioned, but it won't be there unless you set it to be persistent:

    "background": {
        "persistent": true,
        "scripts": ["background.js"]
    }
    

提交回复
热议问题