Pin Chrome's shortcut to the Win10 Start menu on install and OS upgrade.
[chromium-blink-merge.git] / chrome / test / data / banners / cancel_test_page.html
blob5f9d9af49bbd28aa12af8389b97c17dcba5464d5
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 // Navigate the window to trigger the banner cancellation.
12 window.location.href = "/";
13 });
14 </script>
15 </head>
16 <body onload="initialize()">Cancels the banner.</body>
17 </html>