summaryrefslogtreecommitdiffstats
path: root/dom/workers/test/serviceworkers/claim_oninstall_worker.js
blob: 269afa72134ad49b72109121a58ee96a9396b10c (plain)
1
2
3
4
5
6
7
oninstall = function(e) {
  var claimFailedPromise = new Promise(function(resolve, reject) {
    clients.claim().then(reject, () => resolve());
  });

  e.waitUntil(claimFailedPromise);
}