diff --git a/views/layout_footer.php b/views/layout_footer.php index 144b561..8992dd6 100644 --- a/views/layout_footer.php +++ b/views/layout_footer.php @@ -235,8 +235,7 @@ } function loadNotifications() { - return fetch('/api/notifications.php', { credentials: 'same-origin' }) - .then(function(r) { return r.json(); }) + return lt.api.get('/api/notifications.php') .then(function(data) { renderNotifications(data); return true; }) .catch(function() { list.innerHTML = '