vitormalencar/spoon

View on GitHub
src/serviceWorker.js

Summary

Maintainability
A
0 mins
Test Coverage

Showing 0 of 1 total issue

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

function registerValidSW(swUrl, config) {
navigator.serviceWorker
.register(swUrl)
.then(registration => {
registration.onupdatefound = () => {
Severity: Minor
Found in src/serviceWorker.js - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status