Chrome.identity not available/undefined

前端 未结 2 1242
终归单人心
终归单人心 2021-01-07 18:19

I am writing a chrome extension in which I am trying to use the chrome.identity API. But my Chrome doesn\'t recognize identity.

On the following code in developer to

2条回答
  •  南笙
    南笙 (楼主)
    2021-01-07 18:50

    It may require providing a "key" value in your manifest as well (if you're trying to get it working locally and it's not working). You can either use the same key as the one you get when you upload your extension to the webstore or try packing an extension to generate a new one (though I couldn't get this second approach working myself).

提交回复
热议问题