Skip to content

Commit

Permalink
tessst
Browse files Browse the repository at this point in the history
  • Loading branch information
Ko71k committed Dec 16, 2024
1 parent f3638a2 commit 1c7cc2f
Showing 1 changed file with 13 additions and 7 deletions.
20 changes: 13 additions & 7 deletions public/src/components/Header/Header.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 = ''; // Очищаем контейнер
Expand Down

0 comments on commit 1c7cc2f

Please sign in to comment.