function checkIfUrlIsFollowed(url) {
        return new Promise((resolve, reject) => {
            chrome.storage.sync.get({list: []}, function(data){
                for(var i = 0; i < data.list.length; i++){
                    if(data.list[i].url == url) {
                        resolve(true);
                    }
                }
                resolve(false);
            });
        });
    }
/**
    *  Function that check if a url is in the followed list
    * @param: url - the url that we want to check if it's followed
    */
Function that check if a url is in the followed list
@param: url - the url that we want to check if it's followed
Function that check if a url is in the followed list @param : url - the url that we want to check if it ' s followed
function checkIfUrlIsFollowed(url) {
        return new Promise((resolve, reject) => {
            chrome.storage.sync.get({list: []}, function(data){
                for(var i = 0; i < data.list.length; i++){
                    if(data.list[i].url == url) {
                        resolve(true);
                    }
                }
                resolve(false);
            });
        });
    }
function checkIfUrlIsFollowed ( url ) { return new Promise ( ( resolve , reject ) => { chrome . storage . sync . get ( { list : [ ] } , function ( data ) { for ( var i = 0 ; i < data . list . length ; i ++ ) { if ( data . list [ i ] . url == url ) { resolve ( true ) ; } } resolve ( false ) ; } ) ; } ) ; }
Function that check if a url is in the followed list
 @param: url - the url that we want to check if it's followed
Function that check if a url is in the followed list @param : url - the url that we want to check if it ' s followed