我正在尝试使用我的扩展网站上的inline install。这个站点是用vue创建的,我不能调用chrome.webstore.install(),我总是收到这个错误vue.runtime.esm.js:1888 TypeError: Cannot read property 'install' of undefined
我有两个chrome商店链接,根据文档,我需要将链接传递给将要安装的扩展,在我的vue模板代码中,我使用了@click.prevent="installExtension(url)"和我的方法
installExtension(url){
chrome.webstore.install(url, this.onsuccess(), this.onerror() )
}在我写这篇文章的时候,我在控制台中看到了这个错误,并且我看不到任何弹出窗口。如何在我的网站上提示安装firefox和chrome的扩展?
发布于 2020-10-14 06:28:40
不幸的是,内联安装被链接到恶意行为,并已被弃用。
Important: As of 06/12/2018, inline installation is deprecated.参考:https://developer.chrome.com/webstore/inline_installation
谷歌博客:https://blog.chromium.org/2018/06/improving-extension-transparency-for.html
https://stackoverflow.com/questions/64342435
复制相似问题