]> git.localhorst.tv Git - alttp.git/commitdiff
set window title from map
authorDaniel Karbach <daniel.karbach@localhorst.tv>
Sun, 5 Feb 2023 17:08:01 +0000 (18:08 +0100)
committerDaniel Karbach <daniel.karbach@localhorst.tv>
Sun, 5 Feb 2023 17:08:01 +0000 (18:08 +0100)
resources/js/components/pages/Map.js

index d8a10393d12a0c70292ceb4307e682594c4c4569..44ac0a05f5a441e8ecd368ec1cb2a81b1a4b3590 100644 (file)
@@ -10,6 +10,10 @@ const Map = () => {
        const container = React.useRef();
        const { t } = useTranslation();
 
+       React.useEffect(() => {
+               window.document.title = t('map.heading');
+       }, []);
+
        return <Container fluid>
                <OpenSeadragon ref={container}>
                        <div className="d-flex align-items-center justify-content-between">