fix: preview case sensitive file extension

pull/1124/head
Ramires Viana 2020-10-19 13:25:09 +00:00
parent 2bd163d92a
commit 05bff54b71
1 changed files with 1 additions and 1 deletions

View File

@ -52,7 +52,7 @@
but don't worry, you can <a :href="download">download it</a>
and watch it with your favorite video player!
</video>
<object v-else-if="req.extension == '.pdf'" class="pdf" :data="raw"></object>
<object v-else-if="req.extension.toLowerCase() == '.pdf'" class="pdf" :data="raw"></object>
<a v-else-if="req.type == 'blob'" :href="download">
<h2 class="message">{{ $t('buttons.download') }} <i class="material-icons">file_download</i></h2>
</a>