This commit is contained in:
ThatOneCalculator 2022-07-13 23:25:32 -07:00
parent 1a47586cdc
commit 106800f0c5

View file

@ -34,12 +34,8 @@ const props = defineProps<{
video: misskey.entities.DriveFile;
}>();
const videoEl = $ref<HTMLVideoElement | null>();
onMounted(() => {
if (videoEl) {
new Vlitejs('#player');
}
new Vlitejs('#player');
});
const hide = ref((defaultStore.state.nsfw === 'force') ? true : props.video.isSensitive && (defaultStore.state.nsfw !== 'ignore'));