Skip to content

Commit

Permalink
fix(client): client not being initialized (#78)
Browse files Browse the repository at this point in the history
  • Loading branch information
uniibu authored and pi0 committed May 7, 2019
1 parent 42d70b0 commit a68f34b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/sentry.client.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit a68f34b

Please sign in to comment.