Fixed: HTML filter (#277)

This commit is contained in:
nobody 2021-02-21 19:13:11 +01:00
parent 9bca268a98
commit ad00d4c3a8
No known key found for this signature in database
GPG Key ID: 8F6DE3D614FCFD7A
2 changed files with 82 additions and 81 deletions

View File

@ -34,7 +34,7 @@ manipulateDOM._removeCrossOriginAndIntegrityAttr = function (details) {
console.warn('[ LocalCDN ] browser.webRequest.filterResponseData not supported by your browser.'); console.warn('[ LocalCDN ] browser.webRequest.filterResponseData not supported by your browser.');
return; return;
} }
if (details.statusCode === 200) {
let initiatorDomain, listedToManipulateDOM, negateHtmlFilter, filtering, header; let initiatorDomain, listedToManipulateDOM, negateHtmlFilter, filtering, header;
initiatorDomain = helpers.extractDomainFromUrl(details.url, true) || Address.EXAMPLE; initiatorDomain = helpers.extractDomainFromUrl(details.url, true) || Address.EXAMPLE;
@ -119,6 +119,7 @@ manipulateDOM._removeCrossOriginAndIntegrityAttr = function (details) {
return {'responseHeaders': details.responseHeaders}; return {'responseHeaders': details.responseHeaders};
} }
}
}; };

View File

@ -25,7 +25,7 @@
New in LocalCDN: New in LocalCDN:
</div> </div>
<ul> <ul>
<li></li> <li>Fixed: Check status code in HTML filter (<a href="https://codeberg.org/nobody/LocalCDN/issues/277">#277</a>)</li>
</ul> </ul>
<div id="generator-section"> <div id="generator-section">
<div class="topic-label"> <div class="topic-label">