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