blob: 317feb1a02d2d0060ef02c427becc22ff9769be2 [file] [log] [blame]
self.addEventListener('message', function(event) {
self.clients.claim()
.then(function(result) {
if (result !== undefined) {
event.data.port.postMessage(
'FAIL: claim() should be resolved with undefined');
return;
}
event.data.port.postMessage('PASS');
})
.catch(function(error) {
event.data.port.postMessage('FAIL: exception: ' + error.name);
});
});