Before Install Prompt Polyfill

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.

Debug

Override the user agent to simulate a specific browser and trigger the install flow.