background.js
// since the key for unread is the feed id, it's possible that you removed some, as such we should update and clean house
since the key for unread is the feed id, it's possible that you removed some, as such we should update and clean house
since the key for unread is the feed id it ' s possible that you removed some as such we should update and clean house
function CleanUpUnreadOrphans()
{
    var feedIDs = {};
    for(var key in feeds)
    {
        feedIDs[feeds[key].id] = 1;
    }
    for(var key in unreadInfo)
    {
        if(feedIDs[key] == null)
        {
            delete unreadInfo[key];
        }
    }
    localStorage["unreadinfo"] = JSON.stringify(unreadInfo);
    UpdateUnreadBadge();
}
function CleanUpUnreadOrphans ( ) { var feedIDs = { } ; for ( var key in feeds ) { feedIDs [ feeds [ key ] . id ] = 1 ; } for ( var key in unreadInfo ) { if ( feedIDs [ key ] == null ) { delete unreadInfo [ key ] ; } } localStorage [ "unreadinfo" ] = JSON . stringify ( unreadInfo ) ; UpdateUnreadBadge ( ) ; }
since the key for unread is the feed id, it's possible that you removed some, as such we should update and clean house
since the key for unread is the feed id it ' s possible that you removed some as such we should update and clean house