mirror of
https://github.com/LemmyNet/lemmy-ui.git
synced 2024-11-22 14:45:20 +00:00
Fixing service worker lint.
This commit is contained in:
parent
b754a50dff
commit
d91587957f
|
@ -2,19 +2,19 @@ import { register } from 'register-service-worker';
|
||||||
|
|
||||||
register('/service-worker.js', {
|
register('/service-worker.js', {
|
||||||
registrationOptions: { scope: './' },
|
registrationOptions: { scope: './' },
|
||||||
ready(registration) {
|
ready(_registration) {
|
||||||
console.log('Service worker is active.');
|
console.log('Service worker is active.');
|
||||||
},
|
},
|
||||||
registered(registration) {
|
registered(_registration) {
|
||||||
console.log('Service worker has been registered.');
|
console.log('Service worker has been registered.');
|
||||||
},
|
},
|
||||||
cached(registration) {
|
cached(_registration) {
|
||||||
console.log('Content has been cached for offline use.');
|
console.log('Content has been cached for offline use.');
|
||||||
},
|
},
|
||||||
updatefound(registration) {
|
updatefound(_registration) {
|
||||||
console.log('New content is downloading.');
|
console.log('New content is downloading.');
|
||||||
},
|
},
|
||||||
updated(registration) {
|
updated(_registration) {
|
||||||
console.log('New content is available; please refresh.');
|
console.log('New content is available; please refresh.');
|
||||||
},
|
},
|
||||||
offline() {
|
offline() {
|
||||||
|
|
Loading…
Reference in a new issue