From ef9057383de51fe3b123ea569f4f71c27eef6216 Mon Sep 17 00:00:00 2001 From: mappu Date: Sun, 5 Feb 2017 20:07:15 +1300 Subject: [PATCH] client: fixes for previous --- client/dcwebui.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/dcwebui.js b/client/dcwebui.js index 2dab036..1e723c6 100644 --- a/client/dcwebui.js +++ b/client/dcwebui.js @@ -400,7 +400,7 @@ var submit = function() { var pagevis_currently_visible = true; -var pagevis_setup(fnActive, fnInactive) { +var pagevis_setup = function(fnActive, fnInactive) { var h, visibilityChange; if (typeof document.hidden !== "undefined") { // Opera 12.10 and Firefox 18 and later support @@ -965,7 +965,7 @@ window.onload = function() { tab_addHandlers(); - pagevis_currently_visible( + pagevis_setup( function() { // We've just become active // If the foreground is a PM window with UNREAD, mark it as read