[electron-chrome-web-store] Allow installExtension to optionally call beforeInstall
beforeInstall triggers when installing from the chrome web store, but not when calling installExtension.
That makes sense, but it would be nice if an option could be added to installExtension to go through that flow
What's the use case for this flow? Chrome web store pages contain extension metadata ahead of time which is why beforeInstall only works with installChromeWebStore.
installExtension isn't able to fetch this metadata which is why prompting isn't possible. Technically you could scrape the extension's web store page if you wanted to emulate this behavior.
My use case is that have an "add extension" button in my UI as well when a chrome store page is detected. Those pages are not responsive, so a custom button in the UI is easier than horizontally scrolling the page.
I'll try extracting the same info from the page and building my own prompt, but given that electron-chrome-web-store already does this, it would be nice if that was accessible.
Could your "add extension" button press the "Add to Chrome" button in the webpage?
yep!