title
This commit is contained in:
parent
78a5e73371
commit
82e06917cf
@ -19,6 +19,7 @@ class Connect extends Component {
|
||||
}
|
||||
|
||||
componentDidMount() {
|
||||
document.title = "Подключиться к игре";
|
||||
request("attend_game", {
|
||||
game_id: this.getGameId(),
|
||||
attend_token: this.getToken()
|
||||
|
@ -37,6 +37,7 @@ class Game extends Component {
|
||||
}
|
||||
|
||||
componentDidMount() {
|
||||
document.title = "Battleship";
|
||||
this.timer = setInterval(() => this.doUpdate(), 500);
|
||||
}
|
||||
|
||||
|
@ -13,6 +13,10 @@ class Home extends Component {
|
||||
request("new_game", {}, go);
|
||||
}
|
||||
|
||||
componentDidMount() {
|
||||
document.title = "Sprint Battleship";
|
||||
}
|
||||
|
||||
render() {
|
||||
return (
|
||||
<div className='center'>
|
||||
|
@ -28,6 +28,10 @@ class NewGame extends Component {
|
||||
return localStorage.getItem('gameId');
|
||||
}
|
||||
|
||||
componentDidMount() {
|
||||
document.title = "Новая игра";
|
||||
}
|
||||
|
||||
constructor(props) {
|
||||
super(props);
|
||||
this.state = {
|
||||
|
Loading…
Reference in New Issue
Block a user