5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-16 10:31:41 +00:00

Merge branch 'issue-13578' into 'rails'
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:
fauno 2023-06-12 20:12:42 +00:00
commit 0d0eeee2b1

View file

@ -2,11 +2,21 @@
import { Notifier } from '@airbrake/browser' import { Notifier } from '@airbrake/browser'
try {
window.airbrake = new Notifier({ window.airbrake = new Notifier({
projectId: window.env.AIRBRAKE_SITE_ID, projectId: window.env.AIRBRAKE_PROJECT_ID,
projectKey: window.env.AIRBRAKE_API_KEY, projectKey: window.env.AIRBRAKE_PROJECT_KEY,
host: window.env.PANEL_URL 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'