lobby name in document title
This commit is contained in:
parent
82b261c8e5
commit
3bf11c506a
@ -117,6 +117,11 @@ export default {
|
|||||||
sockets: {
|
sockets: {
|
||||||
room(data) {
|
room(data) {
|
||||||
this.lobbyName = data.name
|
this.lobbyName = data.name
|
||||||
|
if (!data.started) {
|
||||||
|
document.title = this.lobbyName +' | PewPew!'
|
||||||
|
} else if (data.started && !this.started) {
|
||||||
|
document.title = 'PewPew!'
|
||||||
|
}
|
||||||
this.started = data.started
|
this.started = data.started
|
||||||
this.password = data.password
|
this.password = data.password
|
||||||
this.privateRoom = data.password !== ''
|
this.privateRoom = data.password !== ''
|
||||||
@ -228,6 +233,7 @@ export default {
|
|||||||
},
|
},
|
||||||
leaveRoom() {
|
leaveRoom() {
|
||||||
window.location.replace(window.location.origin)
|
window.location.replace(window.location.origin)
|
||||||
|
document.title = 'PewPew!'
|
||||||
},
|
},
|
||||||
toggleExpansions(name) {
|
toggleExpansions(name) {
|
||||||
if (!this.isRoomOwner) return;
|
if (!this.isRoomOwner) return;
|
||||||
|
Loading…
Reference in New Issue
Block a user