Fix flickering avatar in firefox

This commit is contained in:
yflory
2017-08-30 12:26:11 +02:00
parent 4db4f66786
commit 0ce32464fd
5 changed files with 16 additions and 5 deletions

View File

@@ -1793,12 +1793,15 @@ define([
};
var $userAdmin = createDropdown(dropdownConfigUser);
var oldUrl;
if (account && !config.static && store) {
var $avatar = $userAdmin.find('.buttonTitle');
var updateButton = function (newName) {
var profile = store.getProfile();
var url = profile && profile.avatar;
if (oldUrl === url) { return; }
oldUrl = url;
$avatar.html('');
common.displayAvatar($avatar, url, newName, function ($img) {
if ($img) {