projectFilters.ts 1.1 KB

123456789101112131415161718192021222324252627282930313233
  1. export function ProjectFilters(params = []) {
  2. return [
  3. {
  4. active: true,
  5. id: 'browser-extensions',
  6. name: 'Filter out errors known to be caused by browser extensions',
  7. description:
  8. 'Certain browser extensions will inject inline scripts and are known to cause errors.',
  9. },
  10. {
  11. active: false,
  12. id: 'localhost',
  13. name: 'Filter out events coming from localhost',
  14. description:
  15. 'This applies to both IPv4 (``127.0.0.1``) and IPv6 (``::1``) addresses.',
  16. },
  17. {
  18. active: ['ie_pre_9', 'ie9'],
  19. id: 'legacy-browsers',
  20. name: 'Filter out known errors from legacy browsers',
  21. description:
  22. 'Older browsers often give less accurate information, and while they may report valid issues, the context to understand them is incorrect or missing.',
  23. },
  24. {
  25. active: false,
  26. id: 'web-crawlers',
  27. name: 'Filter out known web crawlers',
  28. description:
  29. 'Some crawlers may execute pages in incompatible ways which then cause errors that are unlikely to be seen by a normal user.',
  30. },
  31. ...params,
  32. ];
  33. }