forgejo/web_src
william-allspice 2faccf5374
Fix race condition in mermaid observer (#32599)
This Pull Request addresses a race condition in the updateIframeHeight
function where it is sometimes called when the iframe is not fully
loaded or accessible resulting in an alarming error message for the
user.

To address this we:
1. Add defensive programming within the updateIframeHeight function
2. Delay instantiating the intersection observer until the iframe has
loaded

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
(cherry picked from commit 88f5d33ab267f330ffaf02eb019e772ed06ed34f)
2024-12-03 10:19:22 +01:00
..
css Merge pull request 'Fix wiki search overflowing on wide screens (#6047)' (#6063) from spiffyk/forgejo:wiki-search-too-wide into forgejo 2024-11-27 18:28:27 +00:00
fomantic Lock file maintenance 2024-11-25 02:04:53 +00:00
js Fix race condition in mermaid observer (#32599) 2024-12-03 10:19:22 +01:00
svg Arch packages implementation (#4785) 2024-08-04 06:16:29 +00:00