SDF
This commit is contained in:
parent
654a626d7d
commit
460f3361cc
2 changed files with 4 additions and 4 deletions
|
@ -20,17 +20,17 @@ function flash(){
|
||||||
if (notifs >= 1 && !focused){
|
if (notifs >= 1 && !focused){
|
||||||
title.innerHTML = `[+${notifs}] Chat`;
|
title.innerHTML = `[+${notifs}] Chat`;
|
||||||
if (alert) {
|
if (alert) {
|
||||||
icon.href = `/assets/images/${site_name}/alert.webp?v=1`
|
icon.href = escapeHTML(`/assets/images/${site_name}/alert.webp?v=1`)
|
||||||
alert=false;
|
alert=false;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
icon.href = `/assets/images/${site_name}/icon.webp?v=1012`
|
icon.href = escapeHTML(`/assets/images/${site_name}/icon.webp?v=1012`)
|
||||||
alert=true;
|
alert=true;
|
||||||
}
|
}
|
||||||
setTimeout(flash, 500)
|
setTimeout(flash, 500)
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
icon.href = `/assets/images/${site_name}/icon.webp?v=1012`
|
icon.href = escapeHTML(`/assets/images/${site_name}/icon.webp?v=1012`)
|
||||||
notifs = 0
|
notifs = 0
|
||||||
title.innerHTML = 'Chat';
|
title.innerHTML = 'Chat';
|
||||||
}
|
}
|
||||||
|
|
|
@ -188,7 +188,7 @@
|
||||||
<input id="site_name" type="hidden" value="{{SITE_NAME}}">
|
<input id="site_name" type="hidden" value="{{SITE_NAME}}">
|
||||||
<input id="slurreplacer" type="hidden" value="{{v.slurreplacer}}">
|
<input id="slurreplacer" type="hidden" value="{{v.slurreplacer}}">
|
||||||
|
|
||||||
<script data-cfasync="false" src="/chat.js?v=12"></script>
|
<script data-cfasync="false" src="/chat.js?v=13"></script>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
box.scrollTo(0, box.scrollHeight)
|
box.scrollTo(0, box.scrollHeight)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue