【发布时间】:2017-04-21 10:58:11
【问题描述】:
我们正在使用内联安装来安装我们的 chrome 扩展程序。它适用于 chrome 57 及更低版本(并且仍在工作)。但是,在新的 chrome 版本 58 上,内联安装停止工作。
我可以:
- 从网上商店手动安装扩展程序
- 在 chrome 57 及更低版本上安装内联扩展
这是我们的设置:
<!DOCTYPE html>
<html>
<head>
<link href="https://chrome.google.com/webstore/detail/<id>" rel="chrome-webstore-item">
</head>
<body>
<input type="button" value="Start" onclick="installExtension()">
<script>
var chromeExtensionUrl = "https://chrome.google.com/webstore/detail/<id>";
function installExtension() {
chrome.webstore.install(chromeExtensionUrl,
function() {
startCountdown();
sessionLog("extensionInstallAccepted");
},
function(aErr) {
console.log(aErr);
});
}
</script>
</body>
</html>
当我点击按钮时,我收到错误:
Could not fetch data from the Chrome Web Store
知道如何解决这个问题吗?
编辑:
通过https://bugs.chromium.org/p/chromium/issues/detail?id=705283# 了解更多信息
- 如果我退出我的谷歌帐户,我可以在 v58 上安装内嵌扩展
【问题讨论】:
-
这是你的情况crbug.com/705283 吗?
-
看起来很可能,谢谢你的链接。
标签: javascript google-chrome google-chrome-extension