Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -300,8 +300,11 @@ None!
Support
-------

Pace supports Chrome and Edge 96+, Firefox 95+, and Safari 15.2+ on macOS and iOS, plus browsers built
on the same engines, such as Opera and Samsung Internet. For older browsers, use pace-js 1.x.
Pace supports Chrome and Edge 96+, Firefox 95+, Safari 15.2+ on macOS and iOS, Opera 82+, Samsung
Internet 17+, and other browsers built on Chromium 96 or later. For older browsers, use pace-js 1.x.

In tests that run on jsdom, turn on its `pretendToBeVisual` option (Jest and Vitest already do): without
it, jsdom has no `requestAnimationFrame`.

If you run into a compatibility issue, please create an issue.

Expand Down
5 changes: 4 additions & 1 deletion pace.js
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,10 @@
if (!ignoreStack.length && options.ajax) {
if (method === 'socket' && options.ajax.trackWebSockets) {
return true;
} else if (options.ajax.trackMethods.includes(method.toUpperCase())) {
}
// Array.prototype.includes, so a string or number from a misconfiguration
// matches nothing instead of matching substrings or throwing.
if (Array.prototype.includes.call(options.ajax.trackMethods, method.toUpperCase())) {
return true;
}
}
Expand Down
2 changes: 1 addition & 1 deletion pace.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading