mirror of
https://github.com/twisterarmy/twister-html.git
synced 2025-02-05 11:34:25 +00:00
don't store avatar to local storage if it is 'img/genericPerson.png', #339
This commit is contained in:
parent
e82959efde
commit
57cc22a2fc
@ -389,7 +389,8 @@ function getAvatar(username, img) {
|
|||||||
function(req, imagedata) {
|
function(req, imagedata) {
|
||||||
if (imagedata && imagedata.length) {
|
if (imagedata && imagedata.length) {
|
||||||
_avatarMap[req.username] = imagedata;
|
_avatarMap[req.username] = imagedata;
|
||||||
_putResourceIntoStorage('avatar:' + username, imagedata);
|
if (imagedata !== 'img/genericPerson.png')
|
||||||
|
_putResourceIntoStorage('avatar:' + username, imagedata);
|
||||||
req.img.attr('src', imagedata);
|
req.img.attr('src', imagedata);
|
||||||
}
|
}
|
||||||
}, {username: username, img: img}
|
}, {username: username, img: img}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user