Faster game start for accepted live challenges
authorBenjamin Auder <benjamin.auder@somewhere>
Wed, 29 Apr 2020 08:15:33 +0000 (10:15 +0200)
committerBenjamin Auder <benjamin.auder@somewhere>
Wed, 29 Apr 2020 08:15:33 +0000 (10:15 +0200)
client/src/views/Hall.vue

index 96174c1..4a481df 100644 (file)
@@ -1303,7 +1303,7 @@ export default {
             this.$router.push("/game/" + gameInfo.id);
           });
         },
-        this.focus ? 500 + 1000 * Math.random() : 0
+        this.focus ? 0 : 500 + 1000 * Math.random()
       );
     }
   }