From 3437d18ffe322a226392c68c53cd5a1ab515971a Mon Sep 17 00:00:00 2001 From: Alberto Xamin Date: Tue, 24 Nov 2020 09:38:36 +0100 Subject: [PATCH] tab title --- frontend/src/App.vue | 1 + frontend/src/components/Player.vue | 2 ++ 2 files changed, 3 insertions(+) diff --git a/frontend/src/App.vue b/frontend/src/App.vue index a780857..b7a648b 100644 --- a/frontend/src/App.vue +++ b/frontend/src/App.vue @@ -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(); diff --git a/frontend/src/components/Player.vue b/frontend/src/components/Player.vue index 5859138..7ee758b 100644 --- a/frontend/src/components/Player.vue +++ b/frontend/src/components/Player.vue @@ -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