Files
FreshRSS/p/scripts
TowyTowy 8aa8655cda fix(js): use Event() constructor instead of deprecated initEvent() (#9035)
`document.createEvent('Event')` followed by `Event.initEvent()` is
deprecated (https://developer.mozilla.org/en-US/docs/Web/API/Event/initEvent).
Replace the two remaining usages in `main.js` with the standard
`new Event(name, { bubbles, cancelable })` constructor, matching the
pattern already used in `extra.js`. The `bubbles` and `cancelable`
flags are kept identical (both `true`) so dispatch behaviour is
unchanged.

Fixes #5152

Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
2026-07-12 22:51:15 +02:00
..
2022-05-15 21:52:52 +02:00