Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(111)

Side by Side Diff: chrome/test/data/banners/cancel_test_page.html

Issue 1148163003: Allow only responsive websites to install as a web app on mobile. Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Merging with latest master Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 <html> 1 <html>
2 <head> 2 <head>
3 <title>Web app banner test page</title> 3 <title>Web app banner test page</title>
4 <link rel="manifest" href="manifest.json" /> 4 <link rel="manifest" href="manifest.json" />
5 <meta name="viewport" content="width=device-width, initial-scale=1">
5 <script src="main.js"></script> 6 <script src="main.js"></script>
6 <script> 7 <script>
7 window.addEventListener('beforeinstallprompt', function(e) { 8 window.addEventListener('beforeinstallprompt', function(e) {
8 console.log('Preventing banner from appearing'); 9 console.log('Preventing banner from appearing');
9 e.preventDefault(); 10 e.preventDefault();
10 }); 11 });
11 </script> 12 </script>
12 </head> 13 </head>
13 <body onload="initialize()">Cancels the banner.</body> 14 <body onload="initialize()">Cancels the banner.</body>
14 </html> 15 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698