blob: 46fc6c3184eb9a3043a9cf6f8a23b03d0866a9f5 [file] [log] [blame]
<html>
<script>
var scope = 'empty';
navigator.serviceWorker.getRegistration(scope)
.then(function(registration) {
if (registration)
registration.unregister();
})
.then(function() {
var promise = navigator.serviceWorker.register('empty-worker.js',
{ scope: scope });
window.close();
window.opener.done();
return promise;
})
.catch(function(error) {
window.opener.testFailed(error.message);
window.opener.done();
});
</script>
</html>