From 0fac57ee9be9082378738ee3644748ccecbf7e43 Mon Sep 17 00:00:00 2001 From: Yiannis Christodoulou Date: Sun, 19 Oct 2025 13:56:47 +0300 Subject: [PATCH] Add posterUrl to MEDIA_DATA global object Introduces a new optional 'posterUrl' property to the MEDIA_DATA object on the window, updating both the runtime initialization and TypeScript type declaration. --- frontend-tools/video-editor/client/src/main.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/frontend-tools/video-editor/client/src/main.tsx b/frontend-tools/video-editor/client/src/main.tsx index 044e1cd2..12e0de9a 100644 --- a/frontend-tools/video-editor/client/src/main.tsx +++ b/frontend-tools/video-editor/client/src/main.tsx @@ -5,7 +5,8 @@ import "./index.css"; if (typeof window !== "undefined") { window.MEDIA_DATA = { videoUrl: "", - mediaId: "" + mediaId: "", + posterUrl: "" }; window.lastSeekedPosition = 0; } @@ -15,6 +16,7 @@ declare global { MEDIA_DATA: { videoUrl: string; mediaId: string; + posterUrl?: string; }; seekToFunction?: (time: number) => void; lastSeekedPosition: number;