src/_not_exported/at-your-service-sw.js
Function _createPayload
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
async _createPayload(request, response, beforeRequestTime, afterRequestTime) {
const requestHeaders = {};
for (const [key, value] of request.headers) {
requestHeaders[key] = value;
}
Avoid too many return
statements within this function. Open
Open
if (!(event.request.url.indexOf("http") === 0)) return;