OLD | NEW |
---|---|
(Empty) | |
1 <!doctype html> | |
2 <title>register</title> | |
3 <script src="test-helpers.js"></script> | |
4 <body> | |
5 <script> | |
6 navigator.serviceWorker.register('empty-worker.js', {scope: 'scope-register'}) | |
7 .then( | |
8 registration => { | |
9 registration.unregister(); | |
Kunihiko Sakamoto
2015/08/24 07:31:58
You might want to wait for completion as we run tw
falken
2015/08/24 07:41:07
Sounds good, added the then.
It's actually not ne
| |
10 window.parent.postMessage('OK', '*'); | |
11 }, | |
12 error => { | |
13 window.parent.postMessage('FAIL: ' + error.name, '*'); | |
14 }) | |
15 .catch(error => { | |
16 window.parent.postMessage('ERROR: ' + error.name, '*'); | |
17 }); | |
18 </script> | |
19 </body> | |
OLD | NEW |