Skip to content

armgit / fider

Public Imported from GitHub
0

Open platform to collect and prioritize feedback

fix: ignore CSP errors (#609)

Guilherme Oenning8d74a8337794
diff --git a/public/index.tsx b/public/index.tsx
index 719ed422f..fcf9c7cb5 100644
--- a/public/index.tsx
+++ b/public/index.tsx
@@ -20,7 +20,9 @@ const logProductionError = (err: Error) => {
};
window.addEventListener("error", (evt: ErrorEvent) => {
- actions.logError(evt.message, evt.error);
+ if (evt.error && evt.colno > 0 && evt.lineno > 0) {
+ actions.logError(evt.message, evt.error);
+ }
});
document.addEventListener("DOMContentLoaded", () => {