I'm attempting to utilize the inline installation feature on my extension website. The site is built using vue, and I am facing difficulty in invoking the chrome.webstore.install() function. Whenever I try, I encounter this error message: "vue.runtime.esm.js:1888 TypeError: Cannot read property 'install' of undefined"
I have two chrome store links, and according to the documentation, I need to provide the link to the extension that needs to be installed within my vue template code. To achieve this, I have utilized the @click.prevent="installExtension(url)" method in my code.
installExtension(url){
chrome.webstore.install(url, this.onsuccess(), this.onerror())
}
As mentioned earlier, I am getting an error in the console and no installation prompt pops up. How can I trigger the extension installation for both firefox and chrome browsers on my website?