function storeA11ycss(strLevel) {
	// Get current tab ID
	browser.tabs.query({ active: true, currentWindow: true }).then((tabs) => {
		// Get a11y.css stored levels
		let getLevel = browser.storage.local.get("a11ycssLevel");
		getLevel.then(
			// when we got something
			(item) => {
				let a11ycssLevel = [];
				if (item && item.a11ycssLevel) {
					a11ycssLevel = item.a11ycssLevel;
				}
				// Add or replace current tab's value
				a11ycssLevel[tabs[0].id] = {"level": strLevel};
				// And set it back to the storage
				let setting = browser.storage.local.set({ a11ycssLevel });
				setting.then(null, onError); // just in case
			}
		);
	});
}
/**
 * Helper function for browser storage
 * @param {String} strLevel
 */
Helper function for browser storage
@param {String} strLevel
Helper function for browser storage @param { String } strLevel
function storeA11ycss(strLevel) {
	browser.tabs.query({ active: true, currentWindow: true }).then((tabs) => {
		let getLevel = browser.storage.local.get("a11ycssLevel");
		getLevel.then(
			(item) => {
				let a11ycssLevel = [];
				if (item && item.a11ycssLevel) {
					a11ycssLevel = item.a11ycssLevel;
				}
				a11ycssLevel[tabs[0].id] = {"level": strLevel};
				let setting = browser.storage.local.set({ a11ycssLevel });
				setting.then(null, onError); 
			}
		);
	});
}
function storeA11ycss ( strLevel ) { browser . tabs . query ( { active : true , currentWindow : true } ) . then ( ( tabs ) => { let getLevel = browser . storage . local . get ( "a11ycssLevel" ) ; getLevel . then ( ( item ) => { let a11ycssLevel = [ ] ; if ( item && item . a11ycssLevel ) { a11ycssLevel = item . a11ycssLevel ; } a11ycssLevel [ tabs [ 0 ] . id ] = { "level" : strLevel } ; let setting = browser . storage . local . set ( { a11ycssLevel } ) ; setting . then ( null , onError ) ; } ) ; } ) ; }
Helper function for browser storage
 @param {String} strLevel
Helper function for browser storage @param { String } strLevel
// Get current tab ID // Get a11y.css stored levels // when we got something // Add or replace current tab's value // And set it back to the storage // just in case