Skip to content

Commit

Permalink
Change to multiline comment
Browse files Browse the repository at this point in the history
  • Loading branch information
AdamWr committed Mar 27, 2024
1 parent 940f0a0 commit 5402872
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/helpers/noop-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -115,11 +115,13 @@ export const noopPromiseResolve = (
statusText: 'OK',
});

// If responseType is opaque, then by default
// body is null, status is 0, statusText and url are empty strings,
// as per https://fetch.spec.whatwg.org/#concept-filtered-response-opaque
// It's required to mock these properties to avoid adblock detection
// https://github.com/AdguardTeam/Scriptlets/issues/364
/**
* If responseType is opaque, then by default
* body is null, status is 0, statusText and url are empty strings,
* as per https://fetch.spec.whatwg.org/#concept-filtered-response-opaque
* It's required to mock these properties to avoid adblock detection
* https://github.com/AdguardTeam/Scriptlets/issues/364
*/
if (responseType === 'opaque') {
Object.defineProperties(response, {
body: { value: null },
Expand Down

0 comments on commit 5402872

Please sign in to comment.