mirror of
https://github.com/FreshRSS/FreshRSS.git
synced 2026-07-16 18:12:53 -04:00
`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>