Chrome内联安装不会显示弹出窗口

时间:2015-08-05 12:09:24

标签: javascript google-chrome chrome-web-store

我正在尝试通过chrome.webstore.install功能在我的网站上安装Chrome网上商店的扩展程序,但是当我点击下方按钮上的安装弹出窗口时,它不会出现..

来源:

<head>  
<link rel="chrome-webstore-item" href="https://chrome.google.com/webstore/detail/nlmdaeedalndkbecknjlofncilhlemph"> 
</head>     
<body>  
<button onclick="chrome.webstore.install()" id="install-button">Add to Chrome</button>      
</body>

1 个答案:

答案 0 :(得分:0)

您需要允许内联安装在Chrome应用商店中单独使用该应用。转到您的开发者信息中心:Developer Dashboard

然后转到Chrome扩展程序并选择&#34;编辑&#34;。允许&#34;内联安装&#34;然后单击“发布”。

有关此内容的更多信息,请访问:Chrome Inline-Installation