issues
search
Pokemon-World
/
Pokemon-World-Server
PWO is currently offline - Discord avaliable
https://discord.gg/2ZkAJ9S
Other
3
stars
7
forks
source link
Customavatar: refactor custom avatars and update style
#2
Closed
LittleKitsune
closed
7 years ago
LittleKitsune
commented
7 years ago
use a Promise to remove an avatar
check if the user has an avatar before setting it - fixes problems of choosing which avatar which is selected in case there is a gif, and a png.
use arrow functions instead of the
.bind(this)
hack - better efficiency
directly set the avatar to the target user's user object, so less refreshing is needed if the targeted user did not have a custom avatar previously
LittleKitsune
commented
7 years ago
yeah lol idc
NeonLightPWO
commented
7 years ago
ok then
.bind(this)
hack - better efficiency