From 3c35e82a37de2e442b275ee8047b7507d2bd6cfd Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Fri, 4 Apr 2014 23:35:32 +0200 Subject: use high resolution avatars on highdpi screens --- core/js/jquery.avatar.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/js/jquery.avatar.js b/core/js/jquery.avatar.js index 381c42d9dbb..7c19cb321fe 100644 --- a/core/js/jquery.avatar.js +++ b/core/js/jquery.avatar.js @@ -77,7 +77,7 @@ var url = OC.generateUrl( '/avatar/{user}/{size}?requesttoken={requesttoken}', - {user: user, size: size, requesttoken: oc_requesttoken}); + {user: user, size: size * window.devicePixelRatio, requesttoken: oc_requesttoken}); $.get(url, function(result) { if (typeof(result) === 'object') { @@ -93,9 +93,9 @@ } else { $div.show(); if (ie8fix === true) { - $div.html(''); + $div.html(''); } else { - $div.html(''); + $div.html(''); } } if(typeof callback === 'function') { -- cgit v1.2.3