phone focus fix

This commit is contained in:
Marty Killian 2023-12-13 13:58:34 +01:00
parent 6250f367ef
commit da44834191
3 changed files with 3 additions and 1 deletions

View file

@ -36,4 +36,4 @@ function game() {
net.connect(); //connect to server, create a player, and retrieve all players info
setInterval(game);
setInterval(game, 16);

View file

@ -7,6 +7,7 @@ class Network{
message(data){
switch(data.type){
case 'connect':
this.playerId = data.data.playerId;
for (let i = 0; i<data.data.players.length; i++) {

View file

@ -40,6 +40,7 @@ class Phone{
if(input.value!=''){
this.sendMessage(player.name, input.value);
input.value = '';
input.blur()
}
}
}