Skip to content

Commit 0d0f220

Browse files
committed
disable native download button
1 parent 99706ba commit 0d0f220

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

src/components/Recorder.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -397,6 +397,7 @@ export default function Recorder({ closeModal, step, setStep }: Props) {
397397
onPause={() => posthog?.capture("recorder: paused preview video")}
398398
ref={videoRef}
399399
className="mb-4 max-h-[75vh] w-[75vw]"
400+
controlsList="nodownload"
400401
/>
401402
) : null}
402403
<div className="flex items-center justify-center">

src/components/VideoUploadModal.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ export default function VideoUploadModal() {
9494
controls
9595
ref={videoRef}
9696
className="max-h-[0px] max-w-[15px]"
97+
controlsList="nodownload"
9798
/>
9899
) : null}
99100
{file ? (

src/pages/share/[videoId].tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,7 @@ const VideoList: NextPage = () => {
160160
})
161161
}
162162
className="h-full w-full"
163+
controlsList="nodownload"
163164
>
164165
<source src={video.video_url} />
165166
Your browser does not support the video tag.

0 commit comments

Comments
 (0)