fix: hide Draw.io loading flash with placeholder (#481)

* fix: hide Draw.io loading flash with placeholder

* style: auto-format with Biome

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
This commit is contained in:
Dayuan Jiang
2026-01-01 15:20:00 +09:00
committed by GitHub
parent 493ee168b1
commit 77a2f6f6fa
2 changed files with 39 additions and 23 deletions

View File

@@ -32,7 +32,7 @@ const DRAWIO_ORIGIN = getOrigin(DRAWIO_BASE_URL)
// Normalize URL for iframe src - ensure no double slashes
function normalizeUrl(url: string): string {
// Remove trailing slash to avoid double slashes
return url.replace(/\/$/, '')
return url.replace(/\/$/, "")
}
interface SessionState {