OLD | NEW |
---|---|
(Empty) | |
1 <!-- Testing page used in ClearSiteDataThrottleTest. --> | |
2 | |
3 <html> | |
4 <head> | |
5 </head> | |
6 <body> | |
7 <img id="some_resource" /> | |
8 | |
9 <script> | |
10 // Set up a service worker to handle future requests. | |
11 navigator.serviceWorker.register('/?file=worker.js').then(function() { | |
12 // Inform the C++ side of this test that the worker is now registered. | |
13 document.title = 'service worker registered'; | |
14 console.log('Service worker registered.'); | |
falken
2016/10/19 07:14:38
This isn't quite right, the service worker is stil
msramek
2016/10/19 12:20:12
Done. I just left out the catch() part, as the exc
| |
15 }); | |
16 </script> | |
17 </body> | |
18 </html> | |
OLD | NEW |