From 1c7cc2fd17c0d2b7269e37da38621f56e8564975 Mon Sep 17 00:00:00 2001 From: Ko71k Date: Mon, 16 Dec 2024 13:58:34 +0300 Subject: [PATCH] tessst --- public/src/components/Header/Header.js | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/public/src/components/Header/Header.js b/public/src/components/Header/Header.js index 8afb28d..250a33e 100644 --- a/public/src/components/Header/Header.js +++ b/public/src/components/Header/Header.js @@ -210,15 +210,21 @@ export class Header { } async loadNotifications(container) { try { - const response = await api.get('/notification', { - credentials: 'include' - }); + // const response = await api.get('/notification', { + // credentials: 'include' + // }); - if (!response.ok) { - throw new Error('Ошибка загрузки уведомлений'); - } + // if (!response.ok) { + // throw new Error('Ошибка загрузки уведомлений'); + // } - const notifications = await response.json(); + // const notifications = await response.json(); + + const notifications = [ + { + event_id: 1 + } + ]; const message = 'Вас пригласили на мероприятие.' container.innerHTML = ''; // Очищаем контейнер