From 630d5db2cdb1a63bbda05128c524e435ef0e0eb2 Mon Sep 17 00:00:00 2001 From: Julius Härtl Date: Wed, 3 Jan 2018 09:18:12 +0100 Subject: Fix icon rendering in apps management for IE11 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Julius Härtl --- settings/js/apps.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'settings/js') diff --git a/settings/js/apps.js b/settings/js/apps.js index 350c29f5a69..818d119a0ae 100644 --- a/settings/js/apps.js +++ b/settings/js/apps.js @@ -233,8 +233,7 @@ OC.Settings.Apps = OC.Settings.Apps || { var page = $('#app-' + app.id); - // image loading kung-fu (IE doesn't properly scale SVGs, so disable app icons) - if (app.preview && !OC.Util.isIE()) { + if (app.preview) { var currentImage = new Image(); currentImage.src = app.preview; @@ -286,8 +285,10 @@ OC.Settings.Apps = OC.Settings.Apps || { img = ''; img += ''; } else { + var rnd = Math.floor((Math.random() * 100 )) + new Date().getSeconds() + new Date().getMilliseconds(); img = ''; - img += ''; + img += '' + img += ''; } return img; }, -- cgit v1.2.3