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'));