summaryrefslogtreecommitdiffstats
path: root/dom/serviceworkers/test/lazy_worker.js
blob: 6f8681d25cf30e9b5591022c5345eb56e7f1b342 (plain)
1
2
3
4
5
6
7
8
onactivate = function (event) {
  var promise = new Promise(function (res) {
    setTimeout(function () {
      res();
    }, 500);
  });
  event.waitUntil(promise);
};