summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2014-10-17 12:01:27 +0200
committerMorris Jobke <hey@morrisjobke.de>2014-10-17 12:01:27 +0200
commitf1a5ebd59d5403cdae1ed60513c9feb469365d09 (patch)
treec7d7a342797859e53a1edb3f59a218b90b01beb4 /apps/files_sharing
parent276db93daceda7498a262f1f56cb24104d26ac76 (diff)
parent4deb57bfaeacd2eee510ee37797d5e9b504d9888 (diff)
downloadnextcloud-server-f1a5ebd59d5403cdae1ed60513c9feb469365d09.tar.gz
nextcloud-server-f1a5ebd59d5403cdae1ed60513c9feb469365d09.zip
Merge pull request #11611 from owncloud/fix-svg-master
Fix SVG icons
Diffstat (limited to 'apps/files_sharing')
-rw-r--r--apps/files_sharing/js/public.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files_sharing/js/public.js b/apps/files_sharing/js/public.js
index b3036254401..c4b5508692e 100644
--- a/apps/files_sharing/js/public.js
+++ b/apps/files_sharing/js/public.js
@@ -85,7 +85,7 @@ OCA.Sharing.PublicApp = {
};
var img = $('<img class="publicpreview">');
- if (previewSupported === 'true' || mimetype.substr(0, mimetype.indexOf('/')) === 'image') {
+ if (previewSupported === 'true' || mimetype.substr(0, mimetype.indexOf('/')) === 'image' && mimetype !== 'image/svg+xml') {
img.attr('src', OC.filePath('files_sharing', 'ajax', 'publicpreview.php') + '?' + OC.buildQueryString(params));
img.appendTo('#imgframe');
} else if (mimetype.substr(0, mimetype.indexOf('/')) !== 'video') {