From 106800f0c5a6ce7816869b1612a04832a58ddcef Mon Sep 17 00:00:00 2001 From: ThatOneCalculator Date: Wed, 13 Jul 2022 23:25:32 -0700 Subject: [PATCH] =?UTF-8?q?=F0=9F=A4=9E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/client/src/components/media-video.vue | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/packages/client/src/components/media-video.vue b/packages/client/src/components/media-video.vue index 3234d950e..72b01a9a6 100644 --- a/packages/client/src/components/media-video.vue +++ b/packages/client/src/components/media-video.vue @@ -34,12 +34,8 @@ const props = defineProps<{ video: misskey.entities.DriveFile; }>(); -const videoEl = $ref(); - onMounted(() => { - if (videoEl) { - new Vlitejs('#player'); - } + new Vlitejs('#player'); }); const hide = ref((defaultStore.state.nsfw === 'force') ? true : props.video.isSensitive && (defaultStore.state.nsfw !== 'ignore'));