chrome.runtime.getManifest() is not defined

前端 未结 2 755
眼角桃花
眼角桃花 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.

提交回复
热议问题