Update script.js

This commit is contained in:
2019-04-26 11:07:20 -04:00
committed by GitHub
parent c0ffb1911e
commit ffb435aa70
-3
View File
@@ -4,7 +4,6 @@ function changePDF(chapter) {
document.getElementById("chapter_name").innerHTML = chapter
}
function onLoad() {
<script>
if ('serviceWorker' in navigator) {
window.addEventListener('load', function() {
navigator.serviceWorker.register('service-worker.js').then(function(registration) {
@@ -20,8 +19,6 @@ function onLoad() {
} else {
console.log('service worker is not supported');
}
</script>
// service-worker.js
self.addEventListener('install', function() {
console.log('Install!');
});