diff --git a/lib/sentry.client.js b/lib/sentry.client.js index 2604eeec..0e67143f 100644 --- a/lib/sentry.client.js +++ b/lib/sentry.client.js @@ -12,11 +12,11 @@ export default function (ctx, inject) { } return `new ${name}({${Object.keys(integration).map(option => typeof integration[option] === 'function' ? `${option}:${serializeFunction(integration[option])}` : `${option}:${serialize(integration[option])}`).join(',')}})` - }).join(',\n') %> + }).join(',\n ') %> ] }) - <%= if (options.initialize) %>) { %>// Initialize sentry + <% if (options.initialize) { %>// Initialize sentry Sentry.init(opts)<% } %> // Inject Sentry to the context as $sentry