Skip to content

Commit 8e61854

Browse files
committed
fix: conditionally set tutorial video URL based on modal state
1 parent 8dcc7cf commit 8e61854

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/client/HelpModal.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ export class HelpModal extends BaseModal {
153153
<iframe
154154
id="tutorial-video-iframe"
155155
class="absolute top-0 left-0 w-full h-full"
156-
src="${TUTORIAL_VIDEO_URL}"
156+
src="${this.isModalOpen ? TUTORIAL_VIDEO_URL : ""}"
157157
title="${translateText("help_modal.video_tutorial_title")}"
158158
frameborder="0"
159159
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"

0 commit comments

Comments
 (0)