]> git.localhorst.tv Git - alttp.git/blobdiff - resources/js/components/pages/Map.js
set window title from map
[alttp.git] / 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">