background.js
// if key is filled in, then only that feed will be refreshed
if key is filled in, then only that feed will be refreshed
if key is filled in then only that feed will be refreshed
function CheckForUnreadStart(key)
{
    if(checkingForUnread || feeds.length == 0)
    {
        return;
    }
    checkForUnreadCounter = (key == null) ? 0 : key;
    checkingForUnread = true;
    if(key == null)
    {
        clearTimeout(checkForUnreadTimerID);
        checkForUnreadTimerID = setTimeout(CheckForUnreadStart, options.checkinterval * 1000 * 60);
        if(viewerPort != null)
        {
            viewerPort.postMessage({type: "refreshallstarted"});
        }
    }
    else
    {
        refreshFeed = true;
    }
    CheckForUnread();
}
function CheckForUnreadStart ( key ) { if ( checkingForUnread || feeds . length == 0 ) { return ; } checkForUnreadCounter = ( key == null ) ? 0 : key ; checkingForUnread = true ; if ( key == null ) { clearTimeout ( checkForUnreadTimerID ) ; checkForUnreadTimerID = setTimeout ( CheckForUnreadStart , options . checkinterval * 1000 * 60 ) ; if ( viewerPort != null ) { viewerPort . postMessage ( { type : "refreshallstarted" } ) ; } } else { refreshFeed = true ; } CheckForUnread ( ) ; }
if key is filled in, then only that feed will be refreshed
if key is filled in then only that feed will be refreshed
// keep timer going on "refresh"