diff --git a/src/bg/ReportingCSP.js b/src/bg/ReportingCSP.js index c9d1b43..eb9057a 100644 --- a/src/bg/ReportingCSP.js +++ b/src/bg/ReportingCSP.js @@ -16,7 +16,7 @@ function ReportingCSP(marker, reportURI = "") { let blocker; if (capabilities) { let contentType = responseHeaders.filter(h => h.name.toLowerCase() === "content-type"); - let blockHTTP = contentType.lentgh === 0 || contentType.some(h => !/^(?:text|application)\/\S*\b(?:x?ht|x)ml\b/i.test(h.name)); + let blockHTTP = contentType.length === 0 || contentType.some(h => !/^(?:text|application)\/\S*\b(?:x?ht|x)ml\b/i.test(h.name)); blocker = this.buildFromCapabilities(capabilities, blockHTTP); } let extras = [];