Headers are mostly isolated
This commit is contained in:
		
							parent
							
								
									a93f7b0bdb
								
							
						
					
					
						commit
						a089496034
					
				
					 1 changed files with 6 additions and 4 deletions
				
			
		|  | @ -17,7 +17,7 @@ export default class windowman { | ||||||
| 
 | 
 | ||||||
| 	// Prepare the window with its metadata.
 | 	// Prepare the window with its metadata.
 | ||||||
| 	constructor(OPTIONS) { | 	constructor(OPTIONS) { | ||||||
| 		const headers = (OPTIONS) => { | 		function headers (OPTIONS) { | ||||||
| 			let LOAD_STATE = true; | 			let LOAD_STATE = true; | ||||||
| 			let UI = { | 			let UI = { | ||||||
| 				"CSS": ["/styles/external/fonts/materialdesignicons.min.css", "/styles/external/materialize/css/materialize.css", "/styles/ui.css"], | 				"CSS": ["/styles/external/fonts/materialdesignicons.min.css", "/styles/external/materialize/css/materialize.css", "/styles/ui.css"], | ||||||
|  | @ -64,13 +64,15 @@ export default class windowman { | ||||||
| 				}) | 				}) | ||||||
| 				: false; | 				: false; | ||||||
| 
 | 
 | ||||||
| 			this.header = UI; | 			return (UI); | ||||||
| 		}; | 		}; | ||||||
| 
 |  | ||||||
| 		 |  | ||||||
| 		 | 		 | ||||||
| 		// Get the window.
 | 		// Get the window.
 | ||||||
| 		this[`metadata`] = chrome.windows.getCurrent(); | 		this[`metadata`] = chrome.windows.getCurrent(); | ||||||
|  | 		this[`options`] = OPTIONS; | ||||||
|  | 
 | ||||||
|  | 		// Add the headers. 
 | ||||||
|  | 		this[`headers`] = headers(((this[`options`] && (typeof this[`options`]).includes(`obj`)) ? this[`options`][`headers`] : false) ? this[`options`][`headers`] : null); | ||||||
| 		 | 		 | ||||||
| 		headers(((OPTIONS != null && typeof OPTIONS == `object`) ? OPTIONS[`headers`] : false) ? OPTIONS[`headers`] : null); | 		headers(((OPTIONS != null && typeof OPTIONS == `object`) ? OPTIONS[`headers`] : false) ? OPTIONS[`headers`] : null); | ||||||
| 		this.design(); | 		this.design(); | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue