Created
June 21, 2018 02:50
-
-
Save goofmint/1e0c958029e75808e0475132c4067a13 to your computer and use it in GitHub Desktop.
This file contains 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
var deferredPrompt; | |
window.addEventListener('beforeinstallprompt', function(e) { | |
e.preventDefault(); | |
// ここでプロンプトを変数に入れておく | |
deferredPrompt = e; | |
return false; | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment