fix chat flash

master
Aevann1 2022-08-15 07:19:41 +02:00
parent 336ad55fe4
commit 01cc1726cc
2 changed files with 6 additions and 1 deletions

View File

@ -56,6 +56,11 @@ socket.on('speak', function(json) {
chatline.classList.remove('chat-mention');
};
notifs = notifs + 1;
if (notifs == 1) {
setTimeout(flash, 500);
}
let users = document.getElementsByClassName('userlink');
let last_user = users[users.length-1].innerHTML;

View File

@ -202,7 +202,7 @@
<input id="site_name" type="hidden" value="{{SITE_NAME}}">
<input id="slurreplacer" type="hidden" value="{{v.slurreplacer}}">
<script src="/chat.js?v=35"></script>
<script src="/chat.js?v=36"></script>
{% include "emoji_modal.html" %}
{% include "expanded_image_modal.html" %}