Skip to content

Commit

Permalink
Allowed for url overloading
Browse files Browse the repository at this point in the history
  • Loading branch information
Hamish-taylor committed May 28, 2024
1 parent 54e087d commit 304065e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Unused normalize.css file
-->
## [3.1.1]
## [3.1.0]

### Added
- Added a ping to tell Raygun that raygun4js has been set up correctly, this information will be used to help users when setting up a new application. This can be disabled using the new `sendPing` option e.g., `rg4js('sendPing', false)`.
- Moved the typescript types into the main raygun4js repo
- Added an new option for enabling Real user monitoring

## [3.0.1]

Expand Down
3 changes: 1 addition & 2 deletions src/raygun.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ var raygunFactory = function (window, $, undefined) {
};

var _userKey = 'raygun4js-userid';

// State variables
var _traceKit = TraceKit,
_raygun = window.Raygun,
Expand All @@ -56,7 +55,6 @@ var raygunFactory = function (window, $, undefined) {
_groupingKeyCallback,
_beforeXHRCallback,
_afterSendCallback,
_raygunApiUrl = 'https://api.raygun.io',
_excludedHostnames = null,
_excludedUserAgents = null,
_filterScope = 'customData',
Expand Down Expand Up @@ -101,6 +99,7 @@ var raygunFactory = function (window, $, undefined) {
init: function (key, options, customdata) {
_traceKit.remoteFetching = false;

Raygun.Options._raygunApiUrl = 'https://api.raygun.io';
this.Options._raygunApiKey = key;

if (customdata) {
Expand Down
4 changes: 2 additions & 2 deletions src/raygun.loader.js
Original file line number Diff line number Diff line change
Expand Up @@ -236,8 +236,8 @@

var url = Raygun.Options._raygunApiUrl + "/ping?apiKey=" + encodeURIComponent(Raygun.Options._raygunApiKey);
var data = {
crashReportingEnabled: crashReportingEnabled || false,
realUserMonitoringEnabled: realUserMonitoringEnabled || false,
crashReportingEnabled: crashReportingEnabled ? true : false,
realUserMonitoringEnabled: realUserMonitoringEnabled ? true : false,
providerName: "raygun4js",
providerVersion: '{{VERSION}}'
};
Expand Down

0 comments on commit 304065e

Please sign in to comment.