Roll src/third_party/WebKit d9c6159:8139f33 (svn 201974:201975)
[chromium-blink-merge.git] / chrome / test / data / banners / prompt_in_handler_test_page.html
blobae1ed7612ae09f8cc4c7dbff17ffb6ceed3f9d0c
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 window.addEventListener('beforeinstallprompt', function(e) {
8 console.log('Preventing banner from appearing');
9 e.preventDefault();
11 console.log('Re-prompt banner');
12 e.prompt();
13 });
14 </script>
15 </head>
16 <body onload="initialize()">Cancels the banner, then prompts for it to be shown in the handler.</body>
17 </html>