Chrome内嵌式安装不适用于扩展程序 [英] Chrome Inline Install for extension not working

查看:120
本文介绍了Chrome内嵌式安装不适用于扩展程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试使用新的Chrome内联安装功能进行扩展(请参阅: http://code.google.com/chrome/webstore/docs/inline_installation.html )。



我无法使用它不幸的是,并没有什么线索可以通过。我已经将link元素添加到head元素中

 < link rel =chrome-webstore-itemhref = https://chrome.google.com/webstore/detail/pnnfemgpilpdaojpnkjdgfgbnnjojfik\"> 

和我打电话

  chrome.webstore.install(); 

在jquery事件处理程序中。我也验证了我的域名,但是,我在本地机器上测试了这个,但有一个子域指向我的本地主机(即在dev.getbentobox.com上进行测试,该主机文件映射到本地主机,如果这有所帮助)。

当使用chrome调试器浏览我的js时,chrome.webstore.install()会被调用并定义函数。然而,没有任何反应 - 没有安装,没有JavaScript异常,没有控制台打印,什么都没有。



有什么想法?

解决方案

您的 Chrome网上应用店商品不会显示已验证的网站。如果您将其与我们很热心扩展程序进行比较,该扩展程序可以从 http://weheartit.com/heart-button ,它有一个绿色的支票,写着from weheartit.com 。您需要编辑您的网上应用店项目,并将验证的网站与该项目相关联。


I'm trying to use the new chrome inline install feature for extensions (see here: http://code.google.com/chrome/webstore/docs/inline_installation.html).

I can't get it to work unfortunately, and have very little clues to go by. I've added the link element to the head element

<link rel="chrome-webstore-item" href="https://chrome.google.com/webstore/detail/pnnfemgpilpdaojpnkjdgfgbnnjojfik">

and I call

chrome.webstore.install();

in a jquery event handler. I've also verified my domain, however, I'm testing this on a local machine but have a subdomain pointed to my localhost (i.e. testing on dev.getbentobox.com which is mapped to localhost in my hosts file if that makes a difference).

When stepping through my js using the chrome debugger, chrome.webstore.install() is getting called and the function is defined. However, nothing happens - no install, no javascript exception, no console printing, nothing.

any ideas?

解决方案

Your Chrome Web Store item doesn't show the verified site. If you compare it to the "We Heart It" extension, which can be inline installed from http://weheartit.com/heart-button, it has a green check saying "from weheartit.com". You'll need to edit your Web Store item, and associate your verified site with the item.

这篇关于Chrome内嵌式安装不适用于扩展程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆