From df59c5d1ee5810293e3c7a6a63f00f0e94126c03 Mon Sep 17 00:00:00 2001 From: Piotr Filiciak Date: Tue, 24 May 2016 12:43:43 +0200 Subject: [PATCH] bug fix --- apps/files_sharing/js/public.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/files_sharing/js/public.js b/apps/files_sharing/js/public.js index 46d4ee2d59..572ccc47b7 100644 --- a/apps/files_sharing/js/public.js +++ b/apps/files_sharing/js/public.js @@ -149,7 +149,7 @@ OCA.Sharing.PublicApp = { img.attr('width', 128); img.appendTo('#imgframe'); } - else { + else if (previewSupported === 'true') { $('#imgframe > video').attr('poster', OC.filePath('files_sharing', 'ajax', 'publicpreview.php') + '?' + OC.buildQueryString(params)); }