From 3ae06792055db21cc5c331d763ccdc9df3addca7 Mon Sep 17 00:00:00 2001 From: Daniel Griesser Date: Wed, 7 Feb 2018 15:47:54 +0100 Subject: [PATCH] fix: Dsn type check (#348) * fix: Dsn type check Fixes #342 --- lib/Sentry.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Sentry.js b/lib/Sentry.js index 07b1700470..683198135f 100644 --- a/lib/Sentry.js +++ b/lib/Sentry.js @@ -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;