From 637161b0a4a18dab689c31ec32896a0884400a66 Mon Sep 17 00:00:00 2001 From: LarsVomMars Date: Wed, 27 Jan 2021 15:19:37 +0100 Subject: Minor fixibus --- profile/public/user.js | 1 + 1 file changed, 1 insertion(+) (limited to 'profile/public/user.js') diff --git a/profile/public/user.js b/profile/public/user.js index ba6952e..b0eb768 100644 --- a/profile/public/user.js +++ b/profile/public/user.js @@ -18,6 +18,7 @@ function addUser(userData) { } const h1 = document.createElement("h1"); h1.textContent = `${user.name} ${user.middlename || ""} ${user.surname}`; + document.querySelector("title").textContent = h1.textContent; h1.addEventListener("click", (evt) => { const qDivs = evt.target.parentElement.querySelectorAll("div"); qDivs.forEach( -- cgit v1.2.3