Add initial profile background image handling
This commit is contained in:
@@ -186,6 +186,11 @@ onMounted(async () => {
|
||||
window.document.title = result.cloudronName;
|
||||
document.getElementById('favicon').href = `${API_ORIGIN}/api/v1/cloudron/avatar?ts=${Date.now()}`;
|
||||
|
||||
if (profile.value.hasBackgroundImage) {
|
||||
window.document.body.style.backgroundImage = `url('${profile.value.backgroundImageUrl}')`;
|
||||
window.document.body.classList.add('has-background');
|
||||
}
|
||||
|
||||
ready.value = true;
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user