Skip to content

Commit

Permalink
fix not focus issue
Browse files Browse the repository at this point in the history
  • Loading branch information
greggman committed Jul 8, 2015
1 parent c6b5180 commit dea84ab
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions public/scripts/showgames.js
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit dea84ab

Please sign in to comment.