mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-16 08:11:42 +00:00
Merge branch 'issue-13578' into 'rails'
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
Al cargar formulario de Artículo nuevo, si no carga js Airbrake falla issue-13578 See merge request sutty/sutty!191
This commit is contained in:
commit
0d0eeee2b1
1 changed files with 15 additions and 5 deletions
|
@ -2,11 +2,21 @@
|
||||||
|
|
||||||
import { Notifier } from '@airbrake/browser'
|
import { Notifier } from '@airbrake/browser'
|
||||||
|
|
||||||
window.airbrake = new Notifier({
|
try {
|
||||||
projectId: window.env.AIRBRAKE_SITE_ID,
|
window.airbrake = new Notifier({
|
||||||
projectKey: window.env.AIRBRAKE_API_KEY,
|
projectId: window.env.AIRBRAKE_PROJECT_ID,
|
||||||
host: window.env.PANEL_URL
|
projectKey: window.env.AIRBRAKE_PROJECT_KEY,
|
||||||
})
|
host: window.env.PANEL_URL
|
||||||
|
});
|
||||||
|
|
||||||
|
console.originalError = console.error;
|
||||||
|
console.error = (...e) => {
|
||||||
|
window.airbrake.notify(e.join(" "));
|
||||||
|
return console.originalError(...e);
|
||||||
|
};
|
||||||
|
} catch(e) {
|
||||||
|
console.error(e);
|
||||||
|
}
|
||||||
|
|
||||||
import 'core-js/stable'
|
import 'core-js/stable'
|
||||||
import 'regenerator-runtime/runtime'
|
import 'regenerator-runtime/runtime'
|
||||||
|
|
Loading…
Reference in a new issue