Fix consistentie benamingen.

This commit is contained in:
2026-09-11 22:14:50 +02:00
parent deba8463b8
commit 38701bf06a
12 changed files with 1746 additions and 162 deletions
+8 -2
View File
@@ -253,7 +253,10 @@
if (isFetchingEvents) return;
isFetchingEvents = true;
try {
const res = await fetch('/api/notifications.php?action=get_events', { cache: 'no-store' });
const res = await fetch('/api/notifications.php?action=get_events', {
cache: 'no-store',
headers: { 'X-Background-Poll': '1' }
});
if (res.status === 401) {
console.warn('Notificatiesessie niet geauthenticeerd.');
return;
@@ -420,7 +423,10 @@
isLiveSyncRunning = true;
try {
const url = `/api/live_sync.php?last_mail_id=${encodeURIComponent(lastKnownMailId)}&last_jira_key=${encodeURIComponent(lastKnownJiraKey)}&calendar_hash=${encodeURIComponent(lastCalendarHash)}`;
const res = await fetch(url, { cache: 'no-store' });
const res = await fetch(url, {
cache: 'no-store',
headers: { 'X-Background-Poll': '1' }
});
if (res.status === 401) return;
if (res.ok) {
const data = await res.json();