tab title

This commit is contained in:
Alberto Xamin 2020-11-24 09:38:36 +01:00
parent d65d677fd5
commit 3437d18ffe
No known key found for this signature in database
GPG Key ID: 4F026F48309500A2
2 changed files with 3 additions and 0 deletions

View File

@ -75,6 +75,7 @@ export default {
sockets: {
connect() {
this.isConnected = true;
document.title = 'PewPew!'
if (Vue.config.devtools) {
setTimeout(function(){
this.username =(1+Math.random() * 100 % 100).toFixed(2).toString();

View File

@ -95,6 +95,8 @@ export default {
this.max_lives = self.max_lives
this.has_played_bang = self.has_played_bang
this.is_my_turn = self.is_my_turn
if (this.is_my_turn) document.title = 'È il tuo turno! | PewPew!'
else document.title = 'PewPew!'
this.expected_response = self.expected_response
this.available_cards = self.available_cards
this.win_status = self.win_status