Skip to content

Commit

Permalink
Merge branch 'fix/AG-20196' of ssh://bit.adguard.com:7999/adguard-fil…
Browse files Browse the repository at this point in the history
…ters/scriptlets into fix/AG-20196
  • Loading branch information
slavaleleka committed May 15, 2023
2 parents 35074e5 + b13ae17 commit e8760f3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
7 changes: 2 additions & 5 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

### Added

- `getResponseHeader()` and `getAllResponseHeaders()` methods mock
to `prevent-xhr` scriptlet [#295](https://github.com/AdguardTeam/Scriptlets/issues/295)

### Changed

- improved `prevent-fetch` — if `responseType` is not specified,
Expand All @@ -21,6 +16,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

- website reloading if `$now$`/`$currentDate$` value is used
in `trusted-set-cookie-reload` scriptlet [#291](https://github.com/AdguardTeam/Scriptlets/issues/291)
- `getResponseHeader()` and `getAllResponseHeaders()` methods mock
to `prevent-xhr` scriptlet [#295](https://github.com/AdguardTeam/Scriptlets/issues/295)

## <a name="v1.9.7"></a> [v1.9.7] - 2023-03-14

Expand Down
3 changes: 1 addition & 2 deletions src/scriptlets/prevent-xhr.js
Original file line number Diff line number Diff line change
Expand Up @@ -152,8 +152,7 @@ export function preventXHR(source, propsToMatch, customResponseText) {
if (randomText) {
modifiedResponseText = randomText;
} else {
// FIXME: improve error text
logMessage(source, `Invalid range: ${customResponseText}`);
logMessage(source, `Invalid randomize parameter: '${customResponseText}'`);
}
}

Expand Down

0 comments on commit e8760f3

Please sign in to comment.