forgejo/web_src/js/markup
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
..
anchors.js Small refactors in anchors.js (#29947) 2024-03-26 19:04:27 +01:00
asciicast.js Fix math and mermaid rendering bugs (#24049) 2023-04-17 12:10:22 +02:00
codecopy.js Strip trailing newline in markdown code copy (#29019) 2024-02-01 15:01:48 -06:00
common.js Fix math and mermaid rendering bugs (#24049) 2023-04-17 12:10:22 +02:00
content.js Fix math and mermaid rendering bugs (#24049) 2023-04-17 12:10:22 +02:00
math.js Change katex limits (#27823) 2023-10-29 01:52:02 +00:00
mermaid.js Fix race condition in mermaid observer (#32599) 2024-12-03 10:19:22 +01:00
tasklist.js fix unchecking check boxes like [X] 2024-07-28 14:18:34 +00:00