Merge branch 'dev' into mobile-option
This commit is contained in:
+5
-1
@@ -11,7 +11,7 @@ import './css/app.css';
|
||||
import { MobileContext } from './components/infoview/context';
|
||||
import { useMobile } from './hooks';
|
||||
import { AUTO_SWITCH_THRESHOLD, getWindowDimensions} from './state/preferences';
|
||||
|
||||
import { connection } from './connection';
|
||||
|
||||
export const GameIdContext = React.createContext<string>(undefined);
|
||||
|
||||
@@ -37,6 +37,10 @@ function App() {
|
||||
}
|
||||
}, [lockMobile])
|
||||
|
||||
React.useEffect(() => {
|
||||
connection.startLeanClient(gameId);
|
||||
}, [gameId])
|
||||
|
||||
return (
|
||||
<div className="app">
|
||||
<GameIdContext.Provider value={gameId}>
|
||||
|
||||
Reference in New Issue
Block a user