mirror of
https://github.com/classilla/tenfourfox.git
synced 2024-08-14 10:29:31 +00:00
11 lines
301 B
JavaScript
11 lines
301 B
JavaScript
|
onmessage = function(e) {
|
||
|
self.clients.matchAll().then(function(res) {
|
||
|
if (!res.length) {
|
||
|
dump("Error: no clients are currently controlled.\n");
|
||
|
return;
|
||
|
}
|
||
|
res[0].postMessage(indexedDB ? { available: true } :
|
||
|
{ available: false });
|
||
|
});
|
||
|
};
|