GregBrimble/cf-workers-typescript-template

View on GitHub

Showing 1 of 22 total issues

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 packages/client/src/serviceWorker.ts - About 1 hr to fix
    Severity
    Category
    Status
    Source
    Language