chrome.runtime.getManifest() is not defined

前端 未结 2 754
眼角桃花
眼角桃花 2021-01-27 18:18

I\'m trying to work with some javascript that accesses chrome.runtime in Google Chrome. The script calls the chrome.runtime.getManifest() function, but my console says that fun

相关标签:
2条回答
  • 2021-01-27 18:28

    I found the answer. These functions are only available when the javascript is running from a Chrome App.

    0 讨论(0)
  • 2021-01-27 18:42

    For Chrome extensions, this method is only available in the background scope.

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