From bcd1f6980b4023cc10ba00d6e9b86585f582ef32 Mon Sep 17 00:00:00 2001 From: xfarrow Date: Wed, 28 Feb 2024 16:04:00 +0100 Subject: [PATCH] Update userprofile.html --- frontend/vanilla/html/userprofile.html | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/frontend/vanilla/html/userprofile.html b/frontend/vanilla/html/userprofile.html index f20607f..8f65be7 100644 --- a/frontend/vanilla/html/userprofile.html +++ b/frontend/vanilla/html/userprofile.html @@ -3,10 +3,10 @@ - Resume + Page Title - +
Profile Picture @@ -77,16 +77,18 @@ } const data = await response.json(); - if(response.ok){ - populateFields(data.display_name, data.email); - } - else{ - alert(response.error); - } + if(response.ok){ + populateFields(data.display_name, data.email); + document.body.style.display = "block"; // Show page + } + else{ + alert(data.error); + } } function populateFields(displayName, email){ document.getElementById('displayName').textContent = displayName; + document.title = `${displayName} - Blink` document.getElementById('email').textContent = email; }