web: report server and browser errors to Bugsink

This commit is contained in:
ponas committed 2026-10-14 02:45:18 +02:00
1 parent b7e7847885
commit 6c324a48aa
10 files changed
+1685 -12

No files matched your search

+9
View File
@@ -0,0 +1,9 @@
import { reportError } from "@/lib/reportError";
// Errors that no React error boundary catches
window.addEventListener("error", (event) => {
reportError(event.error ?? event.message);
});
window.addEventListener("unhandledrejection", (event) => {
reportError(event.reason);
});