diff options
Diffstat (limited to 'dom/serviceworkers/test/lazy_worker.js')
-rw-r--r-- | dom/serviceworkers/test/lazy_worker.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/dom/serviceworkers/test/lazy_worker.js b/dom/serviceworkers/test/lazy_worker.js new file mode 100644 index 0000000000..6f8681d25c --- /dev/null +++ b/dom/serviceworkers/test/lazy_worker.js @@ -0,0 +1,8 @@ +onactivate = function (event) { + var promise = new Promise(function (res) { + setTimeout(function () { + res(); + }, 500); + }); + event.waitUntil(promise); +}; |