Skip to content

Commit 0a17ec3

Browse files
committed
Always draw irrespective of screen visibility
1 parent 3151fbe commit 0a17ec3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

app/public/js/main.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -246,8 +246,8 @@ function playFromQueueExchange1(){
246246
var event = eventQueue.shift();
247247
if(event != null && event.message != null && !shouldEventBeIgnored(event) && svg != null){
248248
playSound(event.message.length*1.1, event.type);
249-
if(!document.hidden)
250-
drawEvent(event, svg);
249+
// if(!document.hidden)
250+
drawEvent(event, svg);
251251
}
252252
setTimeout(playFromQueueExchange1, Math.floor(Math.random() * 1000) + 500);
253253
$('.events-remaining-value').html(eventQueue.length);
@@ -257,8 +257,8 @@ function playFromQueueExchange2(){
257257
var event = eventQueue.shift();
258258
if(event != null && event.message != null && !shouldEventBeIgnored(event) && svg != null){
259259
playSound(event.message.length, event.type);
260-
if(!document.hidden)
261-
drawEvent(event, svg);
260+
// if(!document.hidden)
261+
drawEvent(event, svg);
262262
}
263263
setTimeout(playFromQueueExchange2, Math.floor(Math.random() * 800) + 500);
264264
$('.events-remaining-value').html(eventQueue.length);

0 commit comments

Comments
 (0)