Chrome commands API

后端 未结 2 412
独厮守ぢ
独厮守ぢ 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.

    0 讨论(0)
  • 2021-02-07 13:50

    Commenter rsanchez provides the correct answer:

    Are you working with an unpacked extension? You need to remove and re-add the extension for suggested shorcut keys to be considered.

    0 讨论(0)
提交回复
热议问题