diff src/chat.js @ 111:37ab261aee7b default tip

notify fix
author Franklin Schmidt <fschmidt@gmail.com>
date Tue, 16 Sep 2025 00:01:53 -0600
parents b86bb25fb416
children
line wrap: on
line diff
--- a/src/chat.js	Mon Sep 15 13:29:10 2025 -0600
+++ b/src/chat.js	Tue Sep 16 00:01:53 2025 -0600
@@ -284,7 +284,7 @@
 }
 
 function heartbeat() {
-	let url = `heartbeat.js?last_update=${lastUpdate}`;
+	let url = `heartbeat.js?last_update=${lastUpdate}&focus=${document.hasFocus()}`;
 	if( currentChatId )
 		url += `&chat=${currentChatId}`;
 	ajax(url);