Pin Chrome's shortcut to the Win10 Start menu on install and OS upgrade.
[chromium-blink-merge.git] / chrome / test / data / banners / prompt_test_page.html
blobb460e20071ec818dd69a007df362e1cbd30c823c
1 <html>
2 <head>
3 <title>Web app banner test page</title>
4 <link rel="manifest" href="manifest.json" />
5 <script src="main.js"></script>
6 <script>
7 function callPrompt(event) {
8 console.log('Re-prompt banner');
9 event.prompt();
12 window.addEventListener('beforeinstallprompt', function(e) {
13 console.log('Preventing banner from appearing');
14 e.preventDefault();
16 setTimeout(callPrompt, 0, e);
17 });
19 </script>
20 </head>
21 <body onload="initialize()">Cancels the banner, then prompts for it to be shown later.</body>
22 </html>