Add a constructor to create a message.
This is similar to that run executed in .log().
This commit is contained in:
		
							parent
							
								
									571dc18f34
								
							
						
					
					
						commit
						dbb8b47b38
					
				
					 2 changed files with 2 additions and 4 deletions
				
			
		|  | @ -16,7 +16,7 @@ export default class alerts { | ||||||
| 
 | 
 | ||||||
| 	constructor(TITLE, MESSAGE) { | 	constructor(TITLE, MESSAGE) { | ||||||
| 		// Set this message's properties. 
 | 		// Set this message's properties. 
 | ||||||
| 		if (MESSAGE = null) { | 		if (MESSAGE == null) { | ||||||
| 			this.message = TITLE; | 			this.message = TITLE; | ||||||
| 		} else { | 		} else { | ||||||
| 			this.title = TITLE; | 			this.title = TITLE; | ||||||
|  |  | ||||||
|  | @ -89,9 +89,7 @@ export default class filters { | ||||||
| 				let filter_URL = filters.dequeue(); | 				let filter_URL = filters.dequeue(); | ||||||
| 
 | 
 | ||||||
| 				// Inform the user of download state.
 | 				// Inform the user of download state.
 | ||||||
| 				alerts.log( | 				new alerts (texts.localized(`settings_filters_update_status`, null, [filter_URL])); | ||||||
| 					texts.localized(`settings_filters_update_status`, null, [filter_URL]), |  | ||||||
| 				); |  | ||||||
| 
 | 
 | ||||||
| 				// Create promise of downloading.
 | 				// Create promise of downloading.
 | ||||||
| 				let filter_download = net.download(filter_URL, `JSON`, false, true); | 				let filter_download = net.download(filter_URL, `JSON`, false, true); | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue