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); }