function checkIfExtensionIsDisabled() {
	return new Promise((resolve, reject) => {

		chrome.storage.sync.get('disabled', function(data) {

			console.log(data)
			var endDate = new Date(data.disabled.endDate);
			var now = new Date();
			if (now > endDate) {
				resolve(false);
			} else {
				resolve(true);
			}
		});
	});
}
/**
*	Checks if the extension in disabled
*/
Checks if the extension in disabled
Checks if the extension in disabled
function checkIfExtensionIsDisabled() {
	return new Promise((resolve, reject) => {
		chrome.storage.sync.get('disabled', function(data) {
			console.log(data)
			var endDate = new Date(data.disabled.endDate);
			var now = new Date();
			if (now > endDate) {
				resolve(false);
			} else {
				resolve(true);
			}
		});
	});
}
function checkIfExtensionIsDisabled ( ) { return new Promise ( ( resolve , reject ) => { chrome . storage . sync . get ( 'disabled' , function ( data ) { console . log ( data ) var endDate = new Date ( data . disabled . endDate ) ; var now = new Date ( ) ; if ( now > endDate ) { resolve ( false ) ; } else { resolve ( true ) ; } } ) ; } ) ; }
Checks if the extension in disabled
Checks if the extension in disabled