summaryrefslogtreecommitdiffstats
path: root/dom/serviceworkers/test/claim_oninstall_worker.js
blob: 82c69990316c2aca0646082d24163b9c9aecf433 (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);
};