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