re-enable window observation for session storage fix
This commit is contained in:
		
							parent
							
								
									807a221286
								
							
						
					
					
						commit
						942532db10
					
				
					 1 changed files with 3 additions and 2 deletions
				
			
		|  | @ -3,7 +3,7 @@ | ||||||
| */ | */ | ||||||
| 
 | 
 | ||||||
| // Import modules.
 | // Import modules.
 | ||||||
| import {session} from "/scripts/secretariat.js"; | import {session, observe} from "/scripts/secretariat.js"; | ||||||
| import Window from "/scripts/GUI/window.js"; | import Window from "/scripts/GUI/window.js"; | ||||||
| import Page from "/scripts/pages/page.js"; | import Page from "/scripts/pages/page.js"; | ||||||
| import Loader from "/scripts/GUI/loader.js"; | import Loader from "/scripts/GUI/loader.js"; | ||||||
|  | @ -32,6 +32,7 @@ class Page_Popup extends Page { | ||||||
| 			"error": "error.htm" | 			"error": "error.htm" | ||||||
| 		} | 		} | ||||||
| 
 | 
 | ||||||
|  | 		// This will be rewritten to only get the active tab. It should not change whenever the user clicks another tab; it's assumed that he will open the pop-up seperately over there. 
 | ||||||
| 		// Get the last edited site. 
 | 		// Get the last edited site. 
 | ||||||
| 		let SITE = {}; | 		let SITE = {}; | ||||||
| 		SITE = await session.read([`last`], -1); | 		SITE = await session.read([`last`], -1); | ||||||
|  | @ -61,7 +62,7 @@ class Page_Popup extends Page { | ||||||
| 		// Check if the frame is available.
 | 		// Check if the frame is available.
 | ||||||
| 		if (this.elements[`frame`].length) { | 		if (this.elements[`frame`].length) { | ||||||
| 			await this.switch(); | 			await this.switch(); | ||||||
| 			// observe((DATA) => {this.switch();});
 | 			this.background(); | ||||||
| 		} else { | 		} else { | ||||||
| 			this.loading(); | 			this.loading(); | ||||||
| 		} | 		} | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue