title
This commit is contained in:
parent
78a5e73371
commit
82e06917cf
@ -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()
|
||||||
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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'>
|
||||||
|
@ -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 = {
|
||||||
|
Loading…
Reference in New Issue
Block a user