mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-03-18 10:30:49 +01:00
fix profile image update in header after changes
This commit is contained in:
@@ -108,7 +108,9 @@ define('accounts/picture', [
|
||||
const headerIconEl = $(`[component="header/avatar"] [component="avatar/icon"]`);
|
||||
|
||||
if (picture) {
|
||||
if (!headerPictureEl.length && headerIconEl.length) {
|
||||
if (headerPictureEl.length) {
|
||||
headerPictureEl.attr('src', picture);
|
||||
} else if (headerIconEl.length) {
|
||||
const img = $('<img/>');
|
||||
$(headerIconEl[0].attributes).each(function () {
|
||||
img.attr(this.nodeName, this.nodeValue);
|
||||
|
||||
Reference in New Issue
Block a user