Merge branch 'console-error' into 'master'
Notificar los errores See merge request sutty/jekyll/sutty-base-jekyll-theme!13
This commit is contained in:
commit
51f4092cf8
1 changed files with 6 additions and 0 deletions
|
@ -6,6 +6,12 @@ window.airbrake = new Notifier({
|
||||||
host: 'https://panel.sutty.nl'
|
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 'core-js/stable'
|
||||||
import 'regenerator-runtime/runtime'
|
import 'regenerator-runtime/runtime'
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue