summaryrefslogtreecommitdiffstats
path: root/settings
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2016-08-17 16:04:53 +0200
committerMorris Jobke <hey@morrisjobke.de>2016-08-17 16:04:53 +0200
commit28c192c9f5a5279482eaabbcaf2d24e78379c5bd (patch)
tree71845515aaaf9a482c5c9c0eba9b2911b8a4f4e0 /settings
parentbded787d0c4a4c09d6134dec1f4f05751e1d1ec1 (diff)
downloadnextcloud-server-28c192c9f5a5279482eaabbcaf2d24e78379c5bd.tar.gz
nextcloud-server-28c192c9f5a5279482eaabbcaf2d24e78379c5bd.zip
Fix null reference in IE
Diffstat (limited to 'settings')
-rw-r--r--settings/js/apps.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/settings/js/apps.js b/settings/js/apps.js
index 89b446ed3b9..ac259dd7989 100644
--- a/settings/js/apps.js
+++ b/settings/js/apps.js
@@ -196,13 +196,13 @@ OC.Settings.Apps = OC.Settings.Apps || {
if (app.preview && !OC.Util.isIE()) {
var currentImage = new Image();
currentImage.src = app.preview;
- }
- currentImage.onload = function() {
- page.find('.app-image')
- .append(OC.Settings.Apps.imageUrl(app.preview, app.detailpage))
- .fadeIn();
- };
+ currentImage.onload = function() {
+ page.find('.app-image')
+ .append(OC.Settings.Apps.imageUrl(app.preview, app.detailpage))
+ .fadeIn();
+ };
+ }
// set group select properly
if(OC.Settings.Apps.isType(app, 'filesystem') || OC.Settings.Apps.isType(app, 'prelogin') ||