From 45e056cf185d39a31b07dae6e9d6623b1fb95383 Mon Sep 17 00:00:00 2001 From: Benjamin Auder <benjamin.auder@somewhere> Date: Sun, 18 Feb 2018 15:33:50 +0100 Subject: [PATCH] 'update' --- public/javascripts/evaluation.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/public/javascripts/evaluation.js b/public/javascripts/evaluation.js index 565794f..49ba6e5 100644 --- a/public/javascripts/evaluation.js +++ b/public/javascripts/evaluation.js @@ -55,9 +55,8 @@ new Vue({ if (evaluation.mode == "watch") { window.addEventListener("focus", () => { - if (this.stage != 2) - return; - socket.emit(message.studentFocus, {number:this.student.number}); + if (this.stage == 2) + socket.emit(message.studentFocus, {number:this.student.number}); }, false); } window.addEventListener("resize", e => { -- 2.44.0