1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-07-05 11:37:01 +02:00

Fix last commit

Related feedback:
https://github.com/uBlockOrigin/uBlock-issues/discussions/3096#discussioncomment-8272470

Related commit:
6cfba082f9
This commit is contained in:
Raymond Hill 2024-01-28 18:47:37 -05:00
parent 0f12d5f344
commit 7282d953b6
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2

View File

@ -1998,7 +1998,8 @@ function noFetchIf(
? args[0]
: Object.assign({ url: args[0] }, args[1]);
if ( propsToMatch === '' && responseBody === '' ) {
return safe.uboLog(logPrefix, `Called: ${safe.JSON_stringify(details, null, 2)}`);
safe.uboLog(logPrefix, `Called: ${safe.JSON_stringify(details, null, 2)}`);
return Reflect.apply(target, thisArg, args);
}
let proceed = true;
try {
@ -2528,7 +2529,7 @@ function noXhrIf(
xhrInstances.set(this, haystack);
}
if ( propsToMatch === '' && directive === '' ) {
return safe.uboLog(logPrefix, `Called: ${safe.JSON_stringify(haystack, null, 2)}`);
safe.uboLog(logPrefix, `Called: ${safe.JSON_stringify(haystack, null, 2)}`);
}
haystack.headers = Object.assign({}, headers);
return super.open(method, url, ...args);