Skip to content

Commit

Permalink
Fix range parser in prevent-setTimeout scriptlet
Browse files Browse the repository at this point in the history
  • Loading branch information
gorhill committed Mar 4, 2025
1 parent 987ddad commit e636c32
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/resources/prevent-settimeout.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class RangeParser {
this.min = this.max = parseInt(s, 10) || 0;
}
if ( pos !== -1 ) {
this.max = parseInt(s.slice(1), 10) || Number.MAX_SAFE_INTEGER;
this.max = parseInt(s.slice(pos + 1), 10) || Number.MAX_SAFE_INTEGER;
}
}
unbound() {
Expand Down

0 comments on commit e636c32

Please sign in to comment.