8 lines
169 B
JavaScript
8 lines
169 B
JavaScript
onactivate = function (event) {
|
|
var promise = new Promise(function (res) {
|
|
setTimeout(function () {
|
|
res();
|
|
}, 500);
|
|
});
|
|
event.waitUntil(promise);
|
|
};
|