From dea84ab5b97e7680ab1b4ba3bc564c56ccb99a9d Mon Sep 17 00:00:00 2001 From: Gregg Tavares Date: Thu, 9 Jul 2015 01:51:08 +0900 Subject: [PATCH] fix not focus issue --- public/scripts/showgames.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/public/scripts/showgames.js b/public/scripts/showgames.js index 5073167d..e4571214 100644 --- a/public/scripts/showgames.js +++ b/public/scripts/showgames.js @@ -49,11 +49,12 @@ requirejs( var $ = document.getElementById.bind(document); function showGames() { - if (!document.hasFocus()) { - return; // TODO: Put up "scan" button? - } + // Why is this here? + //if (!document.hasFocus()) { + // return; // TODO: Put up "scan" button? + //} var debug = window.location.search.indexOf("debug") >= 0; - var log = debug ? console.log.bind(console) : function() {}; + var log = (debug || true) ? console.log.bind(console) : function() {}; var gamemenu = $("gamemenu"); var nogames = $("nogames");