fix jesse jones

This commit is contained in:
Alberto Xamin 2020-11-25 23:33:54 +01:00
parent 904956a46f
commit e6119394cd
No known key found for this signature in database
GPG Key ID: 4F026F48309500A2
2 changed files with 2 additions and 2 deletions

View File

@ -160,7 +160,7 @@ class Player:
randrange(0, len(self.game.get_player_named(pile).hand))))
self.game.get_player_named(pile).notify_self()
self.sio.emit('chat_message', room=self.game.name,
data=f'{self.name} ha pescato la prima carta dalla mano di {self.attacker.name}.')
data=f'{self.name} ha pescato la prima carta dalla mano di {pile}.')
self.hand.append(self.game.deck.draw())
else:
for i in range(2):

View File

@ -5,7 +5,7 @@ Vue.config.productionTip = false
import VueSocketIO from 'vue-socket.io'
Vue.use(new VueSocketIO({
debug: Vue.config.devtools,
connection: Vue.config.devtools ? 'http://localhost:5001' : window.location.origin,
connection: Vue.config.devtools ? `http://${window.location.hostname}:5001` : window.location.origin,
}))
import PrettyCheckbox from 'pretty-checkbox-vue';