Skip to content

Commit

Permalink
fix: Dsn type check (#348)
Browse files Browse the repository at this point in the history
* fix: Dsn type check

Fixes #342
  • Loading branch information
HazAT authored Feb 7, 2018
1 parent 3decdcc commit 3ae0679
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Sentry.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export const Sentry = {
},

config(dsn, options) {
if (dsn.constructor !== String) {
if (typeof dsn !== 'string') {
throw new Error('Sentry: A DSN must be provided');
}
Sentry._dsn = dsn;
Expand Down

0 comments on commit 3ae0679

Please sign in to comment.