mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-25 18:07:31 +09:00
import FIREFOX_52_6_0esr_RELEASE from mozilla-esr52 hg repo
This commit is contained in:
commit
dcd9973243
150858 changed files with 23884658 additions and 0 deletions
10
dom/indexedDB/test/service_worker.js
Normal file
10
dom/indexedDB/test/service_worker.js
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
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 });
|
||||
});
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue