forked from MarseyWorld/MarseyWorld
fix hat persisting on hatless users in popover
parent
59efc521ff
commit
fd10a0ad87
|
@ -109,6 +109,9 @@ document.addEventListener("click", function(e) {
|
|||
if (author["hat"]) {
|
||||
popover.getElementsByClassName('pop-hat')[0].src = author['hat'] + "?h=7"
|
||||
}
|
||||
else {
|
||||
popover.getElementsByClassName('pop-hat')[0].removeAttribute('src');
|
||||
}
|
||||
popover.getElementsByClassName('pop-username')[0].innerHTML = author["username"]
|
||||
if (popover.getElementsByClassName('pop-bio').length > 0) {
|
||||
popover.getElementsByClassName('pop-bio')[0].innerHTML = author["bio_html"]
|
||||
|
|
Loading…
Reference in New Issue