1
0
mirror of https://codeberg.org/nobody/LocalCDN.git synced 2024-12-23 00:25:15 +01:00

Logging improved (#703)

This commit is contained in:
nobody 2021-09-29 07:10:37 +02:00
parent e0f8719391
commit ca96c8ffca
No known key found for this signature in database
GPG Key ID: 8F6DE3D614FCFD7A

View File

@ -41,8 +41,8 @@ interceptor.handleRequest = function (requestDetails, tabIdentifier, tab) {
};
}
if (!interceptor.blockMissing && interceptor._isBadResource(requestDetails.url)) {
console.warn(`[ LocalCDN ] Evil resource blocked: ${requestDetails.url}`);
if (interceptor._isBadResource(requestDetails.url)) {
console.log(`[ LocalCDN ] Evil resource blocked: ${requestDetails.url}`);
log.append(tab.url, requestDetails.url, '-', true);
return {
'cancel': true