make sure that the product details are loaded only when the website load is to complete
so as to avoid incomplete data from being scraped
This commit is contained in:
		
							parent
							
								
									68636f4770
								
							
						
					
					
						commit
						a444ff2d34
					
				
					 1 changed files with 2 additions and 1 deletions
				
			
		
							
								
								
									
										3
									
								
								scripts/external/watch.js
									
										
									
									
										vendored
									
									
								
							
							
						
						
									
										3
									
								
								scripts/external/watch.js
									
										
									
									
										vendored
									
									
								
							|  | @ -29,10 +29,11 @@ let main = (async () => { | ||||||
| 			console.log("ShopAI works here! Click on the button in the toolbar or website to start."); | 			console.log("ShopAI works here! Click on the button in the toolbar or website to start."); | ||||||
| 			// Show loading screen while the load is incomplete. 
 | 			// Show loading screen while the load is incomplete. 
 | ||||||
| 			 | 			 | ||||||
| 			let PROC = new processor(matches); |  | ||||||
| 			 | 			 | ||||||
| 			// Begin only when the page is fully loaded. 
 | 			// Begin only when the page is fully loaded. 
 | ||||||
| 			window.addEventListener(`load`, (event) => { | 			window.addEventListener(`load`, (event) => { | ||||||
|  | 				// Begin processing. 
 | ||||||
|  | 				let PROC = new processor(matches); | ||||||
| 				 | 				 | ||||||
| 				// Remove the loading screen. 
 | 				// Remove the loading screen. 
 | ||||||
| 				 | 				 | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue