window.addEventListener('load', function() {
if ('serviceWorker' in navigator) {
navigator.serviceWorker.register("https://www.domaker.work/serviceWorker.js")
.then(function(registration) {
}).catch(function(error) {
console.warn("serviceWorker error.", error);
});
}
});