]> git.localhorst.tv Git - alttp.git/commitdiff
set window title
authorDaniel Karbach <daniel.karbach@localhorst.tv>
Sun, 10 Apr 2022 15:09:58 +0000 (17:09 +0200)
committerDaniel Karbach <daniel.karbach@localhorst.tv>
Sun, 10 Apr 2022 15:09:58 +0000 (17:09 +0200)
resources/js/components/pages/Tournament.js
resources/js/components/pages/User.js

index 440e53af5803cddc65af01287617d47645c6383d..729e55d138d856d2da8491a0a20f177831d05cee 100644 (file)
@@ -32,6 +32,7 @@ const Tournament = () => {
                                setError(null);
                                setLoading(false);
                                setTournament(sortParticipants(response.data));
+                               window.document.title = response.data.title;
                        })
                        .catch(error => {
                                setError(error);
index 8dfdba45311aa410a0fbd0a858f3278bf4182912..bb26bfae902e24fffec8501e6e6f1a34216b9546 100644 (file)
@@ -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);