What is this?
This polyfill dispatches a synthetic BeforeInstallPromptEvent on browsers
that don't natively support it.
When event.prompt() is called, it shows a Chrome-like install dialog,
then step-by-step instructions specific to the user's browser.
beforeinstallprompt event fired — show install dialog
Your browser natively supports BeforeInstallPromptEvent. To test the polyfill, open this page in private browsing mode or in a browser that does not support it natively.
Debug
Override the user agent to simulate a specific browser and trigger the install flow.