0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2025-01-05 06:00:26 -05:00
forgejo/web_src/js
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
..
components [PORT] Fix a number of typescript issues (gitea#32308) 2024-11-04 09:15:06 +01:00
features Update web_src/js/features/comp/ComboMarkdownEditor.js 2024-11-28 10:26:12 +00:00
markup Fix race condition in mermaid observer (#32599) 2024-12-03 10:19:22 +01:00
modules
render
standalone [CHORE] Proper chunking for swagger 2024-08-22 15:48:05 +02:00
utils chore: add new lint rules 2024-10-23 08:10:18 +02:00
vendor
webcomponents Merge pull request '[PORT] Fix toAbsoluteLocaleDate and add more tests (gitea#32387)' (#5792) from gusted/forgejo-port-data-time into forgejo 2024-11-05 10:46:14 +00:00
bootstrap.js Suppress Monaco JavaScript errors in Safari (#3805) 2024-05-18 21:07:09 +00:00
bootstrap.test.js
htmx.js
index.js [FEAT]Allow changing git notes (#4753) 2024-11-18 22:56:17 +00:00
jquery.js
svg.js ui: update pull request icons (#4455) 2024-07-16 14:38:46 +00:00
svg.test.js
utils.js chore: add new lint rules 2024-10-23 08:10:18 +02:00
utils.test.js test(js): false negative in sleep test 2024-07-02 19:35:35 +02:00
vitest.setup.js