hongbo-miao/hongbomiao.com

View on GitHub
web/src/shared/libs/serviceWorkerRegistration.ts

Summary

Maintainability
A
1 hr
Test Coverage

Function registerValidSW has 31 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function registerValidSW(swUrl: string, config?: Config) {
  navigator.serviceWorker
    .register(swUrl)
    .then((registration) => {
      registration.onupdatefound = () => {
Severity: Minor
Found in web/src/shared/libs/serviceWorkerRegistration.ts - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status