Changed PDF Detection
This commit is contained in:
@@ -42,7 +42,7 @@ const showFile = (file) => {
|
||||
<iframe
|
||||
:src="`${documentData.url}#toolbar=0&navpanes=0&scrollbar=0`"
|
||||
class="previewEmbed"
|
||||
v-if="documentData.path.includes('pdf')"
|
||||
v-if="documentData.path.toLowerCase().includes('pdf')"
|
||||
loading="lazy"
|
||||
/>
|
||||
<img
|
||||
|
||||
@@ -202,7 +202,7 @@ const moveFile = async () => {
|
||||
class="bigPreview"
|
||||
:data="`${props.documentData.url}#toolbar=0&navpanes=0&scrollbar=0`"
|
||||
type="application/pdf"
|
||||
v-if="props.documentData.path.includes('pdf')"
|
||||
v-if="props.documentData.path.toLowerCase().includes('pdf')"
|
||||
|
||||
/>
|
||||
<img
|
||||
|
||||
Reference in New Issue
Block a user