【发布时间】:2016-11-25 00:21:08
【问题描述】:
我知道我们可以在 chrome 应用程序中访问 chrome.hid.getDevices()。但我也听说 chrome.hid.getDevices() 只能在 chrome app 中使用。
但是我们能否以某种方式访问 chrome 扩展中的 chrome.hid.getDevices()。因为我需要使用 Content-script 注入脚本,以便我可以从网页中使用我的扩展功能,并且据我所知,Content-script 只能在 Chrome Extension 中使用。
有没有用网页与 Chrome 应用通信的例子?
【问题讨论】:
标签: google-chrome-extension google-chrome-app content-script