blob: b460e20071ec818dd69a007df362e1cbd30c823c [file] [log] [blame]
<html>
<head>
<title>Web app banner test page</title>
<link rel="manifest" href="manifest.json" />
<script src="main.js"></script>
<script>
function callPrompt(event) {
console.log('Re-prompt banner');
event.prompt();
}
window.addEventListener('beforeinstallprompt', function(e) {
console.log('Preventing banner from appearing');
e.preventDefault();
setTimeout(callPrompt, 0, e);
});
</script>
</head>
<body onload="initialize()">Cancels the banner, then prompts for it to be shown later.</body>
</html>