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
1 changed files with 3 additions and 2 deletions

View File

@ -1998,7 +1998,8 @@ function noFetchIf(
? args[0] ? args[0]
: Object.assign({ url: args[0] }, args[1]); : Object.assign({ url: args[0] }, args[1]);
if ( propsToMatch === '' && responseBody === '' ) { 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; let proceed = true;
try { try {
@ -2528,7 +2529,7 @@ function noXhrIf(
xhrInstances.set(this, haystack); xhrInstances.set(this, haystack);
} }
if ( propsToMatch === '' && directive === '' ) { 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); haystack.headers = Object.assign({}, headers);
return super.open(method, url, ...args); return super.open(method, url, ...args);