Created
October 28, 2019 14:30
-
-
Save thepassle/5bf1e9b460804564d2f8bc894974ecf2 to your computer and use it in GitHub Desktop.
installing4
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let deferredPrompt; | |
window.addEventListener('beforeinstallprompt', e => { | |
e.preventDefault(); // prevent mini info bar popping up | |
deferredPrompt = e; | |
// show install button somewhere! | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment