File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed
Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ import Container from 'react-bootstrap/Container';
1010import { Home } from './features/Home' ;
1111import { Config } from './features/app/Config' ;
1212import { System } from './features/app/System' ;
13+ import { selectWiFiAccessPointConfig } from './features/app/configSlice' ;
1314
1415const registerEventSource = dispatch => {
1516 const es = new EventSource ( '/api/events' ) ;
@@ -39,6 +40,12 @@ function App() {
3940 useEffect ( ( ) => { dispatch ( getHeatersAsync ( ) ) } , [ dispatch ] )
4041 useEffect ( ( ) => registerEventSource ( dispatch ) , [ dispatch ] ) ;
4142 const activeTab = useSelector ( tabSelector ) ;
43+ const accessPoint = useSelector ( selectWiFiAccessPointConfig )
44+ useEffect ( ( ) => {
45+ if ( ! ! accessPoint . essid ) {
46+ document . title = accessPoint . essid ;
47+ }
48+ } ) ;
4249 return (
4350 < >
4451 { darkMode ? < DarkMode /> : < LightMode /> }
You can’t perform that action at this time.
0 commit comments