From a61da5e486cf52456ad94adb02b8eb0d361e7f09 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 3234d950ec..72b01a9a6b 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'));