mirror of
https://github.com/classilla/tenfourfox.git
synced 2024-09-30 03:58:07 +00:00
17 lines
349 B
JavaScript
17 lines
349 B
JavaScript
onmessage = function(e) {
|
|
clients.matchAll().then(function(c) {
|
|
if (c.length === 0) {
|
|
// We cannot proceed.
|
|
return;
|
|
}
|
|
|
|
registration.unregister().then(function() {
|
|
c[0].postMessage('DONE');
|
|
}, function() {
|
|
c[0].postMessage('ERROR');
|
|
}).then(function() {
|
|
c[0].postMessage('FINISH');
|
|
});
|
|
});
|
|
}
|