blob: a4fb76aa270c79c039501850249f361c16b3460a [file] [log] [blame]
self.addEventListener("message", function(event) {
event.waitUntil(new Promise((resolve, reject) => {
setTimeout(() => {
resolve();
}, 30000);
}));
client = event.source;
setTimeout(function() {
client.postMessage("ExtendedLifetime");
}, 0);
});