Skip to content

Commit

Permalink
Merge pull request #419 from MindscapeHQ/kk/apl-50/cwv-toggle
Browse files Browse the repository at this point in the history
[APL-50] Options not being disabled when they should be.
  • Loading branch information
krishnaKapadia authored Aug 16, 2021
2 parents d19e6db + 3990cc6 commit 6bd1fb4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
* v2.22.5
- Fixes an issue with Core Web Vital tracking not being able to be disabled.
- Fixes an issue where `navigator.sendBeacon` errors were not being handled gracefully.

* v2.22.4
Expand Down
4 changes: 2 additions & 2 deletions src/raygun.js
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,8 @@ var raygunFactory = function(window, $, undefined) {
_setCookieAsSecure = options.setCookieAsSecure || false;
_captureMissingRequests = options.captureMissingRequests || false;
_automaticPerformanceCustomTimings = options.automaticPerformanceCustomTimings || false;
_trackCoreWebVitals = options.trackCoreWebVitals || true;

_trackCoreWebVitals = options.trackCoreWebVitals === undefined ? true : options.trackCoreWebVitals;
if (options.apiUrl) {
_raygunApiUrl = options.apiUrl;
}
Expand Down

0 comments on commit 6bd1fb4

Please sign in to comment.