fix pdf inline blank screen

This commit is contained in:
10G Meow 2025-12-10 12:48:17 +02:00
parent fbeec5abd5
commit cf0a844eb8

View file

@ -101,11 +101,7 @@ const updateSource = () => {
eventAttachment.loadThumbnail().then((url) => { eventAttachment.loadThumbnail().then((url) => {
source.value = url.data; source.value = url.data;
}) })
} else if (isImage.value) { } else if (isImage.value || isVideo.value || isPDF.value) {
eventAttachment.loadSrc().then((url) => {
source.value = url.data;
})
} else if (isVideo.value) {
eventAttachment.loadSrc().then((url) => { eventAttachment.loadSrc().then((url) => {
source.value = url.data; source.value = url.data;
}) })