From 81b460abd8252d7a10c0e6086c31d0d974daeaca Mon Sep 17 00:00:00 2001 From: yflory Date: Tue, 31 Mar 2020 17:55:31 +0200 Subject: [PATCH] Open pdf in the file app --- www/common/drive-ui.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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