diff --git a/www/common/drive-ui.js b/www/common/drive-ui.js index aaeda303d..482c4cf9c 100644 --- a/www/common/drive-ui.js +++ b/www/common/drive-ui.js @@ -1056,7 +1056,8 @@ define([ var href = isRo ? data.roHref : (data.href || data.roHref); var parsed = Hash.parsePadUrl(href); - if (parsed.hashData && parsed.hashData.type === 'file' && !app) { + if (parsed.hashData && parsed.hashData.type === 'file' && !app + && data.fileType !== "application/pdf") { common.getMediaTagPreview({ href: data.href, password: data.password