Mercurial Hosting > chat
comparison src/chat.js @ 111:37ab261aee7b
notify fix
| author | Franklin Schmidt <fschmidt@gmail.com> |
|---|---|
| date | Tue, 16 Sep 2025 00:01:53 -0600 |
| parents | b86bb25fb416 |
| children | 77c8104d7053 |
comparison
equal
deleted
inserted
replaced
| 110:d2637760cd00 | 111:37ab261aee7b |
|---|---|
| 282 pulldown.scrollIntoViewIfNeeded(false); | 282 pulldown.scrollIntoViewIfNeeded(false); |
| 283 } | 283 } |
| 284 } | 284 } |
| 285 | 285 |
| 286 function heartbeat() { | 286 function heartbeat() { |
| 287 let url = `heartbeat.js?last_update=${lastUpdate}`; | 287 let url = `heartbeat.js?last_update=${lastUpdate}&focus=${document.hasFocus()}`; |
| 288 if( currentChatId ) | 288 if( currentChatId ) |
| 289 url += `&chat=${currentChatId}`; | 289 url += `&chat=${currentChatId}`; |
| 290 ajax(url); | 290 ajax(url); |
| 291 } | 291 } |
| 292 | 292 |
