Roll src/third_party/WebKit d9c6159:8139f33 (svn 201974:201975)
[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>