update doc title based on the team

This commit is contained in:
Arjun Patel
2022-01-16 00:54:43 -08:00
parent a325817827
commit 56704da4ce
+4
View File
@@ -54,6 +54,10 @@ function TeamDashboard() {
};
useEffect(() => {
// set the document title based on the team
// todo: update based on who sent you a message
document.title = teamDashboardContext.team.name;
window.addEventListener("focus", onFocus);
window.addEventListener("blur", onBlur);
// Calls onFocus when the window first loads