5 navigator
.serviceWorker
.getRegistration(scope
)
6 .then(function(registration
) {
8 registration
.unregister();
11 var promise
= navigator
.serviceWorker
.register('empty-worker.js',
17 .catch(function(error
) {
18 window
.opener
.testFailed(error
.message
);