This commit is contained in:
Administrator 2022-08-29 11:09:09 +03:00
parent 78a5e73371
commit 82e06917cf
4 changed files with 10 additions and 0 deletions

View File

@ -19,6 +19,7 @@ class Connect extends Component {
} }
componentDidMount() { componentDidMount() {
document.title = "Подключиться к игре";
request("attend_game", { request("attend_game", {
game_id: this.getGameId(), game_id: this.getGameId(),
attend_token: this.getToken() attend_token: this.getToken()

View File

@ -37,6 +37,7 @@ class Game extends Component {
} }
componentDidMount() { componentDidMount() {
document.title = "Battleship";
this.timer = setInterval(() => this.doUpdate(), 500); this.timer = setInterval(() => this.doUpdate(), 500);
} }

View File

@ -13,6 +13,10 @@ class Home extends Component {
request("new_game", {}, go); request("new_game", {}, go);
} }
componentDidMount() {
document.title = "Sprint Battleship";
}
render() { render() {
return ( return (
<div className='center'> <div className='center'>

View File

@ -28,6 +28,10 @@ class NewGame extends Component {
return localStorage.getItem('gameId'); return localStorage.getItem('gameId');
} }
componentDidMount() {
document.title = "Новая игра";
}
constructor(props) { constructor(props) {
super(props); super(props);
this.state = { this.state = {