Chrome commands API

后端 未结 2 415
独厮守ぢ
独厮守ぢ 2021-02-07 13:05

I\'ve loaded this sample extension from Chrome docs which uses the commands API.

manifest.json

{
\"name\": \"Sample Extension Commands extension\",
  \"d         


        
2条回答
  •  清歌不尽
    2021-02-07 13:31

    I was running into the same issue and these suggestions didn't help. Here's what I figured out: since you declared the script with the listener in the background: {} section, it logs to a background page. You can see that log specifically by clicking "Inspect background page" right below the extension at the chrome://extensions. that's where the listener logs to.

提交回复
热议问题