client: fixes for previous

This commit is contained in:
mappu 2017-02-05 20:07:15 +13:00
parent 0951bf821e
commit ef9057383d

View File

@ -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