From d8ebe566d8aff137246c96bd99be7968b0f23954 Mon Sep 17 00:00:00 2001 From: yflory Date: Tue, 13 Jun 2017 18:38:53 +0200 Subject: [PATCH] Don't call mediatag for non-image files --- www/common/common-file.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/www/common/common-file.js b/www/common/common-file.js index 843196f83..b6c59e581 100644 --- a/www/common/common-file.js +++ b/www/common/common-file.js @@ -37,7 +37,9 @@ define([ data.name = file.metadata.name; data.url = href; - data.mediatag = true; + if (file.metadata.type.slice(0,6) === 'image/') { + data.mediatag = true; + } return data; };