.then(function(registration) { }).catch(function(error) { console.warn("serviceWorker error.", error); }); } });