From: Daniel Karbach Date: Sun, 10 Apr 2022 15:09:58 +0000 (+0200) Subject: set window title X-Git-Url: https://git.localhorst.tv/?a=commitdiff_plain;h=590c349036ff0a4a568fb57f15bab941ed2ada00;p=alttp.git set window title --- diff --git a/resources/js/components/pages/Tournament.js b/resources/js/components/pages/Tournament.js index 440e53a..729e55d 100644 --- a/resources/js/components/pages/Tournament.js +++ b/resources/js/components/pages/Tournament.js @@ -32,6 +32,7 @@ const Tournament = () => { setError(null); setLoading(false); setTournament(sortParticipants(response.data)); + window.document.title = response.data.title; }) .catch(error => { setError(error); diff --git a/resources/js/components/pages/User.js b/resources/js/components/pages/User.js index 8dfdba4..bb26bfa 100644 --- a/resources/js/components/pages/User.js +++ b/resources/js/components/pages/User.js @@ -24,6 +24,7 @@ const User = () => { setError(null); setLoading(false); setUser(response.data); + window.document.title = response.data.nickname || response.data.username; }) .catch(error => { setError(error);