fix chat hats

master
Aevann1 2022-09-05 10:57:11 +02:00
parent 959e08bb83
commit 9bf2d75bce
2 changed files with 4 additions and 1 deletions

View File

@ -82,6 +82,9 @@ socket.on('speak', function(json) {
document.getElementsByClassName('avatar-pic')[0].src = json['avatar']
if (json['hat'])
document.getElementsByClassName('avatar-hat')[0].src = json['hat'] + "?v=3"
else
document.getElementsByClassName('avatar-hat')[0].removeAttribute("src")
document.getElementsByClassName('userlink')[0].href = '/@' + json['username']
document.getElementsByClassName('userlink')[0].style.color = '#' + json['namecolor']
document.getElementsByClassName('time')[0].classList.remove('d-none')

View File

@ -222,6 +222,6 @@
<script src="{{asset('js/lozad.js')}}"></script>
<script src="/assets/js/lite-youtube.js?v=4000"></script>
<script src="/chat.js?v=4005"></script>
<script src="/chat.js?v=4006"></script>
</body>