diff options
| author | 2025-03-25 18:18:33 +0900 | |
|---|---|---|
| committer | 2025-03-25 10:18:33 +0100 | |
| commit | 9e8c306b3edbda071cdd9cc93bcc45055789ad42 (patch) | |
| tree | fdab50cbbbf4f4a2d835f90cd894c980d0c189f5 /p/scripts | |
| parent | a130f96646d403edafe377b4011d94edcbd7221d (diff) | |
JavaScript: new event to detect context loaded (#7452)
* Add JavaScript event: freshrss:globalContextLoaded
* Update docs
* Update docs: fix typo
Diffstat (limited to 'p/scripts')
| -rw-r--r-- | p/scripts/main.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/p/scripts/main.js b/p/scripts/main.js index 112b38bce..73ac27ddd 100644 --- a/p/scripts/main.js +++ b/p/scripts/main.js @@ -53,6 +53,9 @@ var context; context.icons.unread = decodeURIComponent(context.icons.unread); context.extensions = json.extensions; }()); + +const freshrssGlobalContextLoadedEvent = new Event('freshrss:globalContextLoaded'); +document.dispatchEvent(freshrssGlobalContextLoadedEvent); // </Global context> function badAjax(reload) { |
