better way to open the popup
This commit is contained in:
		
							parent
							
								
									91564df25b
								
							
						
					
					
						commit
						0aeb0d819b
					
				
					 1 changed files with 3 additions and 2 deletions
				
			
		|  | @ -3,6 +3,7 @@ Window and window content management */ | ||||||
| 
 | 
 | ||||||
| import texts from "../strings/read.js"; | import texts from "../strings/read.js"; | ||||||
| import net from "../net.js"; | import net from "../net.js"; | ||||||
|  | import Window from "./window.js"; | ||||||
| 
 | 
 | ||||||
| export default class windowman { | export default class windowman { | ||||||
| 	static new(URL, height, width) { | 	static new(URL, height, width) { | ||||||
|  | @ -14,7 +15,7 @@ export default class windowman { | ||||||
| 		function headers(OPTIONS) { | 		function headers(OPTIONS) { | ||||||
| 			let LOAD_STATE = true; | 			let LOAD_STATE = true; | ||||||
| 			let UI = { | 			let UI = { | ||||||
| 				CSS: [chrome.runtime.getURL("/styles/external/fonts/materialdesignicons.min.css"), chrome.runtime.getURL("/styles/external/materialize/css/materialize.css"), chrome.runtime.getURL("/styles/ui.css")] | 				CSS: ["/styles/external/fonts/materialdesignicons.min.css", "/styles/external/materialize/css/materialize.css", "/styles/ui.css"] | ||||||
| 			}; | 			}; | ||||||
| 
 | 
 | ||||||
| 			// Add additional sources. 
 | 			// Add additional sources. 
 | ||||||
|  | @ -213,7 +214,7 @@ export default class windowman { | ||||||
| 										: `` | 										: `` | ||||||
| 								).concat(target[`source`]); | 								).concat(target[`source`]); | ||||||
| 
 | 
 | ||||||
| 								windowman.new(target[`path`], target[`dimensions`][`height`], target[`dimensions`][`width`]); | 								new Window(target[`path`], null, target[`dimensions`]); | ||||||
| 							}; | 							}; | ||||||
| 
 | 
 | ||||||
| 							button.addEventListener("click", event); | 							button.addEventListener("click", event); | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue