Second test
Some checks failed
Build and Deploy Nuxt / build (push) Failing after 9s

This commit is contained in:
2026-05-02 17:17:21 +02:00
parent 50b3e421df
commit 306dd8cabc
4 changed files with 16 additions and 11 deletions

View File

@@ -2,10 +2,9 @@
import { onMounted, ref } from 'vue';
import { GetUser, LogoutUser } from '@/services/User'
import Server from '@/services/Server'
import Server, { getBaseUrl } from '@/services/Server'
import { CreateWindow, CreateChildWindow, ClearWindow, GetFirstWindowId } from '../../services/Windows';
import { backendUrl } from '../../services/BackendURL';
import Spinner from './Spinner.vue';
const loadedIcon = ref(false);
@@ -21,7 +20,7 @@ function retrieveAvatar(){
Server().get('/user/retrieve-avatar?username=' + GetUser().username)
.then((response) => {
if(response.data.image){
const imgUrl = backendUrl + "/public/" + response.data.image;
const imgUrl = getBaseUrl() + "/public/" + response.data.image;
// Wait for the image to fully load
const img = new Image();