Skip to content

Commit

Permalink
fix(eslint): fix serviceWorker eslint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Clm-Roig committed Mar 15, 2022
1 parent 9270299 commit d414db2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/serviceWorker.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/* eslint-disable @typescript-eslint/no-use-before-define */
/* eslint-disable no-console */

// This optional code is used to register a service worker.
// register() is not called by default.
Expand Down Expand Up @@ -65,6 +66,7 @@ function registerValidSW(swUrl: string, config?: Config) {
navigator.serviceWorker
.register(swUrl)
.then((registration) => {
// eslint-disable-next-line no-param-reassign
registration.onupdatefound = () => {
const installingWorker = registration.installing;
if (installingWorker == null) {
Expand Down

0 comments on commit d414db2

Please sign in to comment.