src/serviceWorker.js
Showing 0 of 1 total issue
Function registerValidSW
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Invalid
Invalid
function registerValidSW(swUrl, config) { navigator.serviceWorker .register(swUrl) .then(registration => { registration.onupdatefound = () => {