Drop the redundant try around the render check fetch.
Checks / checks (push) Successful in 1m58s
Trigger cinny-mobile / dispatch (push) Successful in 1s

This commit is contained in:
2026-11-01 04:01:33 +11:00
parent 0688075542
commit 3cd159a63e
+1 -3
View File
@@ -453,9 +453,7 @@ function MessageNotifications() {
function BackgroundSyncSetup() { function BackgroundSyncSetup() {
const mx = useMatrixClient(); const mx = useMatrixClient();
// Try to make a simple fetch to verify component is rendering // Try to make a simple fetch to verify component is rendering
try { fetch('/_matrix/client/v3/sync', { method: 'HEAD' }).catch(() => {});
fetch('/_matrix/client/v3/sync', { method: 'HEAD' }).catch(() => {});
} catch {}
useEffect(() => { useEffect(() => {
console.log('BackgroundSyncSetup: Starting background sync for', mx.getUserId()); console.log('BackgroundSyncSetup: Starting background sync for', mx.getUserId());