Skip to content

Commit

Permalink
fix: replace stringify
Browse files Browse the repository at this point in the history
stringify causes removal of functions on the object.
We work around this with serialize
  • Loading branch information
JulianMar committed Dec 3, 2019
1 parent 8199f46 commit 4526951
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/plugin.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import Vue from 'vue'
import bugsnag from '@bugsnag/js'
import bugsnagVue from '@bugsnag/plugin-vue'
const bugsnagClient = bugsnag(<%= JSON.stringify(options) %>)
const bugsnagClient = bugsnag(<%= serialize(options) %>)
bugsnagClient.use(bugsnagVue, Vue)

export default function ({ app }, inject) {
Expand Down

0 comments on commit 4526951

Please sign in to comment.