Skip to content

Commit

Permalink
update scriptlets descriptions, fix typo in changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
stanislav-atr committed Dec 15, 2022
1 parent f4b48ce commit 60505e9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

### Changed

- add decimal delay matching for `prevent-setInterval` and `revent-seTimeout` [#247](https://github.com/AdguardTeam/Scriptlets/issues/247)
- add decimal delay matching for `prevent-setInterval` and `prevent-seTimeout` [#247](https://github.com/AdguardTeam/Scriptlets/issues/247)

## v1.7.10

Expand Down
1 change: 1 addition & 0 deletions src/scriptlets/prevent-setInterval.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ import {
* - `matchDelay` - optional, must be an integer.
* If starts with `!`, scriptlet will not match the delay but all other will be defused.
* If do not start with `!`, the delay passed to the `setInterval` call will be matched.
* Decimal delay values will be rounded down, e.g `10.95` will be matched by `matchDelay` with value `10`.
*
* > If `prevent-setInterval` log looks like `setInterval(undefined, 1000)`,
* it means that no callback was passed to setInterval() and that's not scriptlet issue
Expand Down
1 change: 1 addition & 0 deletions src/scriptlets/prevent-setTimeout.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ import {
* - `matchDelay` - optional, must be an integer.
* If starts with `!`, scriptlet will not match the delay but all other will be defused.
* If do not start with `!`, the delay passed to the `setTimeout` call will be matched.
* Decimal delay values will be rounded down, e.g `10.95` will be matched by `matchDelay` with value `10`.
*
* > If `prevent-setTimeout` log looks like `setTimeout(undefined, 1000)`,
* it means that no callback was passed to setTimeout() and that's not scriptlet issue
Expand Down

0 comments on commit 60505e9

Please sign in to comment.