Merge branch 'console-error' into 'master'

Notificar los errores

See merge request sutty/jekyll/sutty-base-jekyll-theme!13
This commit is contained in:
Nulo 2021-09-18 16:13:13 +00:00
commit 51f4092cf8

View file

@ -6,6 +6,12 @@ window.airbrake = new Notifier({
host: 'https://panel.sutty.nl'
})
console.originalError = console.error
console.error = (...e) => {
window.airbrake.notify(e.join(' '))
return console.originalError(...e)
}
import 'core-js/stable'
import 'regenerator-runtime/runtime'