Update script.js
This commit is contained in:
@@ -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!');
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user