remove data of previous failure
This commit is contained in:
		
							parent
							
								
									6297f0d737
								
							
						
					
					
						commit
						85f9dfd5cf
					
				
					 1 changed files with 6 additions and 4 deletions
				
			
		
							
								
								
									
										8
									
								
								scripts/external/watch.js
									
										
									
									
										vendored
									
									
								
							
							
						
						
									
										8
									
								
								scripts/external/watch.js
									
										
									
									
										vendored
									
									
								
							|  | @ -7,7 +7,7 @@ import processor from "/scripts/external/processor.js"; | ||||||
| import logging from "/scripts/logging.js"; | import logging from "/scripts/logging.js"; | ||||||
| import texts from "/scripts/mapping/read.js"; | import texts from "/scripts/mapping/read.js"; | ||||||
| import {global} from "/scripts/secretariat.js"; | import {global} from "/scripts/secretariat.js"; | ||||||
| import nested from "/scripts/utils/nested.js"; | import {URLs} from "/scripts/utils/URLs.js"; | ||||||
| import pointer from "/scripts/data/pointer.js"; | import pointer from "/scripts/data/pointer.js"; | ||||||
| 
 | 
 | ||||||
| export default class watch { | export default class watch { | ||||||
|  | @ -28,10 +28,12 @@ export default class watch { | ||||||
| 	@param {object} options the options | 	@param {object} options the options | ||||||
| 	*/ | 	*/ | ||||||
| 	static async process(filter) { | 	static async process(filter) { | ||||||
| 		let PROCESSOR = new processor(filter, window.location.href, {"automatic": false}); | 		let LOCATION = URLs.clean(window.location.href); | ||||||
|  | 		let PROCESSOR = new processor(filter, LOCATION, {"automatic": false}); | ||||||
|  | 		global.forget([`sites`, LOCATION, `status`], 0, true); | ||||||
| 
 | 
 | ||||||
| 		const perform = (options) => { | 		const perform = (options) => { | ||||||
| 			(document.readyState == `complete`) ? PROCESSOR.run(options) : document.onreadystatechange = async () => {(document.readyState == `complete`) ? PROCESSOR.run(options) : PROCESSOR.product.status.done = .125;}; | 			(document.readyState == `complete`) ? PROCESSOR.run(options) : document.onreadystatechange = async () => {(document.readyState == `complete`) ? PROCESSOR.run(options) : PROCESSOR.status.done = .125;}; | ||||||
| 		} | 		} | ||||||
| 
 | 
 | ||||||
| 		(await global.read([`settings`, `behavior`, `autoRun`]) || await pointer.read([`status`, `error`])) ? document.onreadystatechange = async () => {perform(((await pointer.read([`status`, `error`])) ? {"override": true} : null));} : false; | 		(await global.read([`settings`, `behavior`, `autoRun`]) || await pointer.read([`status`, `error`])) ? document.onreadystatechange = async () => {perform(((await pointer.read([`status`, `error`])) ? {"override": true} : null));} : false; | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue