Node.js based forum software built for the modern web
fix profile image update in header after changes
Barış Soner Uşaklı47f59dcf8ca6
diff --git a/public/src/modules/accounts/picture.js b/public/src/modules/accounts/picture.jsindex 651ce7deaa..7ddd4cebb7 100644--- a/public/src/modules/accounts/picture.js+++ b/public/src/modules/accounts/picture.js@@ -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);