blob: e954067c71d6b02e59f847af12b9f6d6c0c1253e [file] [log] [blame]
<!doctype html>
<title>register</title>
<body>
<script>
'use strict';
navigator.serviceWorker.register('empty-worker.js', {scope: 'scope-register'})
.then(
registration => {
registration.unregister().then(() => {
window.parent.postMessage('OK', '*');
});
},
error => {
window.parent.postMessage('FAIL: ' + error.name, '*');
})
.catch(error => {
window.parent.postMessage('ERROR: ' + error.name, '*');
});
</script>
</body>