From 587c7d20071d50c56c3fd0e4623be48501ee09bf Mon Sep 17 00:00:00 2001 From: Ko71k Date: Mon, 16 Dec 2024 13:34:46 +0300 Subject: [PATCH] default avatar --- public/src/components/Header/Header.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/public/src/components/Header/Header.js b/public/src/components/Header/Header.js index f970dff..a7c69cb 100644 --- a/public/src/components/Header/Header.js +++ b/public/src/components/Header/Header.js @@ -5,6 +5,7 @@ import { endpoint } from "../../config.js" import { api } from '../../modules/FrontendAPI.js'; import { navigate } from '../../modules/router.js'; +import defaultAvatar from '../../assets/images/default_avatar.png'; /** * Header module. * @@ -125,7 +126,7 @@ export class Header { }) avatarImage.onerror = function() { - this.src = "/static/images/default_avatar.png"; + this.src = defaultAvatar; this.style.objectFit = 'fill'; }; avatarImage.alt = 'Avatar';