From a68f34bac9db77209474f17a49fce211f01c4bc2 Mon Sep 17 00:00:00 2001 From: Uni Sayo Date: Tue, 7 May 2019 19:01:50 +0800 Subject: [PATCH] fix(client): client not being initialized (#78) --- lib/sentry.client.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/sentry.client.js b/lib/sentry.client.js index ecfab5d2..2604eeec 100644 --- a/lib/sentry.client.js +++ b/lib/sentry.client.js @@ -16,9 +16,8 @@ export default function (ctx, inject) { ] }) - if (opts.initialize) { - Sentry.init(opts) - } + <%= if (options.initialize) %>) { %>// Initialize sentry + Sentry.init(opts)<% } %> // Inject Sentry to the context as $sentry inject('sentry', Sentry)