JulianMar / nuxt-bugsnag

Bugsnag module for nuxt.js
MIT License
49 stars 18 forks source link

beforeSend() configuration option does not work #2

Closed mikkokut closed 4 years ago

mikkokut commented 4 years ago

It seems that the beforeSend() configuration option does not work. Should it work?

JulianMar commented 4 years ago

yeah true, due to the JSON.stringify all functions get stripped from the object I will check for a workaround

JulianMar commented 4 years ago

See #3.
I solved it by using serialize instead of JSON.stringify.

But be aware that something like console.log in your beforeSend won't work due webpack compilation. if you use window.console.log instead it will work!

mikkokut commented 4 years ago

Thanks a lot!

JulianMar commented 4 years ago

New version tagged at 2.0.4 Thanks for using it :)