mirror of https://github.com/go-gitea/gitea
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>pull/32647/head
parent
9ed768adc4
commit
88f5d33ab2
Loading…
Reference in new issue