Skip to content

Commit d51bdba

Browse files
committed
Don't set lastEventId if Raven is not configured (fixes #828)
1 parent 7339bd8 commit d51bdba

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/raven.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1396,6 +1396,8 @@ Raven.prototype = {
13961396
var self = this;
13971397
var globalOptions = this._globalOptions;
13981398

1399+
if (!this.isSetup()) return;
1400+
13991401
// Send along an event_id if not explicitly passed.
14001402
// This event_id can be used to reference the error within Sentry itself.
14011403
// Set lastEventId after we know the error should actually be sent
@@ -1406,8 +1408,6 @@ Raven.prototype = {
14061408

14071409
this._logDebug('debug', 'Raven about to send:', data);
14081410

1409-
if (!this.isSetup()) return;
1410-
14111411
var auth = {
14121412
sentry_version: '7',
14131413
sentry_client: 'raven-js/' + this.VERSION,

0 commit comments

Comments
 (0)