place the background events to a variable
This commit is contained in:
		
							parent
							
								
									fd7a0c2c88
								
							
						
					
					
						commit
						4558c2fb60
					
				
					 1 changed files with 3 additions and 2 deletions
				
			
		|  | @ -17,8 +17,9 @@ class Page_Results extends Page { | ||||||
| 	}; | 	}; | ||||||
| 
 | 
 | ||||||
|      async background() { |      async background() { | ||||||
|  | 		this[`scripts`] = {}; | ||||||
|      	// Wait until a change in the storage.
 |      	// Wait until a change in the storage.
 | ||||||
| 		new background((changes) => { | 		this[`scripts`][`background`] = new background((changes) => { | ||||||
|                this.update(); |                this.update(); | ||||||
| 			this.content(); | 			this.content(); | ||||||
| 			// First, update site data but retain the URL.
 | 			// First, update site data but retain the URL.
 | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue