Commit graph

8 commits

Author SHA1 Message Date
Antoine Clausse
7d5bf2c0dd [web] Fix error: Cannot read properties of undefined (reading 'startsWith') (#26844)
https://overleaf.sentry.io/issues/6726737555/

GitOrigin-RevId: 488b64c5cb4a75ac4e77c7cdfb47cd3381a9c8eb
2025-07-07 08:05:49 +00:00
Antoine Clausse
3681be7a71 [web] Ignore Propensity Network errors (#26840)
* Test the scripts by adding fake ids

* Test Propensity errors

* Don't send Sentry event if `isPropensityNetworkError`

* Revert "Test Propensity errors"

This reverts commit 7052ca20d0bee3bb32b39fb90c473458a4375d7b.

* Revert "Test the scripts by adding fake ids"

This reverts commit 2ac797aadf24359917a10119155c5e41935a7482.

GitOrigin-RevId: 03c1e63e359d41ad83ce1ae5cc1063f1c59d0b4e
2025-07-07 08:05:27 +00:00
Antoine Clausse
46555d27b0 [web] Add window. prefix to globals and add no-restricted-globals rule (#26422)
* Add `no-restricted-globals` eslint rule

Co-authored-by: Rebeka <rebeka.dekany@overleaf.com>

* Change `self` to `window.self`

* Change `innerWidth` to `window.innerWidth`

* Change `confirm` to `window.confirm`

* Change `location` to `window.location`

* Use `location` from `useLocation` hook

* Use location from useLocation hook
Co-authored-by: Antoine <antoine.clausse@overleaf.com>

* Disable no-restricted-globals eslint rule for use of 'self'

* Use `confusing-browser-globals` from npm

* Prevent unexpected globals in workers, using `no-undef`

* Use `self` as a global in workers

* Use unexpected globals in workers, using `no-restricted-globals` in workers

---------

Co-authored-by: Rebeka <rebeka.dekany@overleaf.com>
Co-authored-by: Rebeka <o.dekany@gmail.com>
GitOrigin-RevId: 526986799f5f2edf53c7d978fa85c1e98189565f
2025-06-24 08:05:10 +00:00
Rebeka Dekany
f86eb6208f Filter out link-sharing token sent to Sentry (#25787)
GitOrigin-RevId: 647f1a2e20e7883f7ab9c862bb0d90cf96360c24
2025-05-22 08:08:13 +00:00
Alf Eaton
47275850fe Ignore another common Non-Error promise rejection error (#22633)
GitOrigin-RevId: a7c8571a6211eeca025f7f6c5dd8970645b911a6
2025-01-09 09:04:52 +00:00
Alf Eaton
34c3647244 Ignore a frequent unhandled promise rejection (#21383)
GitOrigin-RevId: 3c1360d6f4be1367aa77893ad8ef60760d6f9351
2024-10-28 09:05:21 +00:00
Alf Eaton
a238b8eee4 Use ol_spell_check_language tag for error reporting (#21126)
GitOrigin-RevId: 11580f8dca22b0d4858dc5db36827b69a3637371
2024-10-17 08:05:55 +00:00
Alf Eaton
a9fac2370b Upgrade Sentry SDK (#20806)
GitOrigin-RevId: 70cfbfd7f2ae61bbc865d32c576aa8f195837fb5
2024-10-14 11:01:28 +00:00
Renamed from services/web/frontend/js/infrastructure/error-reporter.js (Browse further)