remove defining window size
This is no longer necessary since a new tab is being created.
This commit is contained in:
		
							parent
							
								
									99e37af3ed
								
							
						
					
					
						commit
						352d4ae26f
					
				
					 1 changed files with 3 additions and 17 deletions
				
			
		|  | @ -258,17 +258,6 @@ export default class windowman { | ||||||
| 							TARGET[`source`] = button.getAttribute(`href`); | 							TARGET[`source`] = button.getAttribute(`href`); | ||||||
| 							TARGET[`dimensions`] = {}; | 							TARGET[`dimensions`] = {}; | ||||||
| 
 | 
 | ||||||
| 							// Get the dimensions of the window.
 |  | ||||||
| 							[`height`, `width`].forEach((DIMENSION) => { |  | ||||||
| 								TARGET[`dimensions`][DIMENSION] = (button.getAttribute(`tab-`.concat(DIMENSION))) |  | ||||||
| 									? parseInt(button.getAttribute(`tab-`.concat(DIMENSION))) |  | ||||||
| 									: null; |  | ||||||
| 
 |  | ||||||
| 								(button.getAttribute(`tab-`.concat(DIMENSION))) |  | ||||||
| 									? button.removeAttribute(`tab-`.concat(DIMENSION)) |  | ||||||
| 									: false; |  | ||||||
| 							}) |  | ||||||
| 
 |  | ||||||
| 							// Get the path of the target.
 | 							// Get the path of the target.
 | ||||||
| 							TARGET[`path`] = ( | 							TARGET[`path`] = ( | ||||||
| 								!URLs.test(TARGET[`source`]) | 								!URLs.test(TARGET[`source`]) | ||||||
|  | @ -276,12 +265,9 @@ export default class windowman { | ||||||
| 									: `` | 									: `` | ||||||
| 							).concat(TARGET[`source`]); | 							).concat(TARGET[`source`]); | ||||||
| 							 | 							 | ||||||
| 							// Set the event itself. 
 | 							// When clicked, open the tab. 
 | ||||||
| 							const event = () => { | 							button.event = async () => {Tabs.create(TARGET[`path`]);}; | ||||||
| 								// Open the window as a popup. 
 | 							button.addEventListener(`click`, button.event); | ||||||
| 								Tabs.create(TARGET[`path`]); |  | ||||||
| 							}; |  | ||||||
| 							button.addEventListener(`click`, event); |  | ||||||
| 						} | 						} | ||||||
| 					}) | 					}) | ||||||
| 					: false; | 					: false; | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue