aboutsummaryrefslogtreecommitdiffstats
path: root/core/js
diff options
context:
space:
mode:
authorHendrik Leppelsack <hendrik@leppelsack.de>2016-06-23 13:20:03 +0200
committerVincent Petry <pvince81@owncloud.com>2016-07-01 16:36:37 +0200
commit11be3d6276b7d54ccb166c9ea418e4e54c5eef57 (patch)
tree84fdbe77752fe678df04dcb31c7732e96c053864 /core/js
parent769deaee2fdbbb4dfeb045c4bfa6d3ea470d4cb7 (diff)
downloadnextcloud-server-11be3d6276b7d54ccb166c9ea418e4e54c5eef57.tar.gz
nextcloud-server-11be3d6276b7d54ccb166c9ea418e4e54c5eef57.zip
remove png references in core
Diffstat (limited to 'core/js')
-rw-r--r--core/js/mimetype.js15
1 files changed, 4 insertions, 11 deletions
diff --git a/core/js/mimetype.js b/core/js/mimetype.js
index 3cc33ce2830..0d30da26c26 100644
--- a/core/js/mimetype.js
+++ b/core/js/mimetype.js
@@ -29,7 +29,7 @@ OC.MimeType = {
* Cache that maps mimeTypes to icon urls
*/
_mimeTypeIcons: {},
-
+
/**
* Return the file icon we want to use for the given mimeType.
* The file needs to be present in the supplied file list
@@ -60,7 +60,7 @@ OC.MimeType = {
return null;
},
-
+
/**
* Return the url to icon of the given mimeType
*
@@ -91,19 +91,14 @@ OC.MimeType = {
path += icon;
}
}
-
+
// If we do not yet have an icon fall back to the default
if (gotIcon === null) {
path = OC.webroot + '/core/img/filetypes/';
path += OC.MimeType._getFile(mimeType, OC.MimeTypeList.files);
}
- // Use svg if we can
- if(OC.Util.hasSVGSupport()){
- path += '.svg';
- } else {
- path += '.png';
- }
+ path += '.svg';
// Cache the result
OC.MimeType._mimeTypeIcons[mimeType] = path;
@@ -111,5 +106,3 @@ OC.MimeType = {
}
};
-
-