X-Git-Url: https://git.auder.net/?p=vchess.git;a=blobdiff_plain;f=client%2Fsrc%2Fviews%2FGame.vue;h=ec4f2c9837d31385eed2b88a3d43647f210dcaae;hp=6d37d1ed85496c91651794f53c6ab0f7c89cb502;hb=1a3cfdc05b40c8ecc79397be02529b35411f073f;hpb=f5768809ae96cf4565c0bc3d2747ffc206837e20 diff --git a/client/src/views/Game.vue b/client/src/views/Game.vue index 6d37d1ed..ec4f2c98 100644 --- a/client/src/views/Game.vue +++ b/client/src/views/Game.vue @@ -155,7 +155,7 @@ export default { gameRef: "", nextIds: [], game: {}, //passed to BaseGame - focus: false, + focus: !document.hidden, //will not always work... TODO // virtualClocks will be initialized from true game.clocks virtualClocks: [], vr: null, //"variant rules" object initialized from FEN