【发布时间】:2012-08-10 19:57:20
【问题描述】:
我正在尝试按照本文档 (https://developers.google.com/chrome/web-store/docs/inline_installation) 测试 Chrome Webstore 的内联安装功能。 我正在本地开发它以进行测试,并且无法轻松且经常将我的更改推送到现场。
我如何在本地测试内联安装,因为内联安装取决于您的网站在网站管理员工具中得到验证?
代码
if (!chrome.app.isInstalled) {
chrome.webstore.install(undefined, undefined, function(err) {
console.log(err);
});
}
这会返回:
Installs can only be initiated by the Chrome Web Store item's verified site
显然 localhost 不是经过验证的站点。
感谢任何帮助。
【问题讨论】:
标签: google-chrome google-chrome-extension