static/scripts/cache-polyfill.js
Function addAll
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Cache.prototype.addAll = function addAll(requests) {
var cache = this;
// Since DOMExceptions are not constructable:
function NetworkError(message) {
Consider simplifying this complex logical expression. Open
Open
if (
nativeAddAll && (!userAgent ||
(agent === 'Firefox' && version >= 46) ||
(agent === 'Chrome' && version >= 50)
)