function checkIfUrlIsFollowed() {
	return new Promise((resolve, reject) => {
		chrome.tabs.getSelected(null, function(tab) {
			chrome.storage.sync.get({list: []}, function(data){
				for(var i = 0; i < data.list.length; i++){
					if(data.list[i].url == tab.url) {
						resolve(true);
					}
				}
				resolve(false);
			});
		});
	});
}
/**
*	Checks if the page that user is currently on is followed (it's present in url manager table)
* @return: true if it's in the table or false otherwise
*/
Checks if the page that user is currently on is followed (it's present in url manager table)
Checks if the page that user is currently on is followed ( it ' s present in url manager table )
function checkIfUrlIsFollowed() {
	return new Promise((resolve, reject) => {
		chrome.tabs.getSelected(null, function(tab) {
			chrome.storage.sync.get({list: []}, function(data){
				for(var i = 0; i < data.list.length; i++){
					if(data.list[i].url == tab.url) {
						resolve(true);
					}
				}
				resolve(false);
			});
		});
	});
}
function checkIfUrlIsFollowed ( ) { return new Promise ( ( resolve , reject ) => { chrome . tabs . getSelected ( null , function ( tab ) { chrome . storage . sync . get ( { list : [ ] } , function ( data ) { for ( var i = 0 ; i < data . list . length ; i ++ ) { if ( data . list [ i ] . url == tab . url ) { resolve ( true ) ; } } resolve ( false ) ; } ) ; } ) ; } ) ; }
Checks if the page that user is currently on is followed (it's present in url manager table)
Checks if the page that user is currently on is followed ( it ' s present in url manager table )