How to close the current extension tab?

后端 未结 5 877
陌清茗
陌清茗 2020-12-18 18:46

I\'m trying to close the Options page of the extension. I have a Cancel button and I\'m using this code:

chrome.tabs.getCurrent(null, function(tab) {
  chrom         


        
5条回答
  •  渐次进展
    2020-12-18 19:41

    I have time to continue my extension after a very long time. I checked the documentation again. So it was a inline script, that I had probably blocked with Content Security Policy in the manifest, because I hadn't read the documentation precisely.
    Now Chrome blocks inline scripts by default, so I'll have to fix it anyway.

提交回复
热议问题