update references
This commit is contained in:
		
							parent
							
								
									3b332b6045
								
							
						
					
					
						commit
						6171155de4
					
				
					 2 changed files with 5 additions and 7 deletions
				
			
		
							
								
								
									
										2
									
								
								scripts/external/processor.js
									
										
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								scripts/external/processor.js
									
										
									
									
										vendored
									
									
								
							|  | @ -4,7 +4,7 @@ Process the information on the website and display it on screen. | |||
| 
 | ||||
| import scraper from "/scripts/external/scraper.js"; | ||||
| import product from "/scripts/product.js"; | ||||
| import injection from "/scripts/GUI/inject.js" | ||||
| import injection from "/scripts/GUI/entrypoints/inject.js" | ||||
| 
 | ||||
| export default class processor { | ||||
| 	#filter;  | ||||
|  |  | |||
							
								
								
									
										10
									
								
								scripts/external/watch.js
									
										
									
									
										vendored
									
									
								
							
							
						
						
									
										10
									
								
								scripts/external/watch.js
									
										
									
									
										vendored
									
									
								
							|  | @ -12,10 +12,7 @@ export default class watch { | |||
| 	/* Open relevant graphical user interfaces.  | ||||
| 	*/ | ||||
| 	static callGUI() { | ||||
| 		// Open the side panel if set by default. 
 | ||||
| 		read([`settings`,`behavior`,`autoOpen`]).then((result) => { | ||||
| 			if (result) {chrome.runtime.sendMessage('sidebar_open')}; | ||||
| 		}); | ||||
| 		 | ||||
| 	} | ||||
| 
 | ||||
| 	/* Act on the page. | ||||
|  | @ -29,6 +26,7 @@ export default class watch { | |||
| 		// Begin only when the page is fully loaded. 
 | ||||
| 		window.addEventListener(`DOMContentLoaded`, (event) => { | ||||
| 			// Begin processing. 
 | ||||
| 			console.log(`processing...`); | ||||
| 			let PROC = new processor(filter); | ||||
| 		}); | ||||
| 	} | ||||
|  | @ -37,8 +35,8 @@ export default class watch { | |||
| 		/* The main action. */ | ||||
| 		(check.platform()).then((RULES) => { | ||||
| 			if (RULES && Object.keys(RULES).length > 0) { | ||||
| 				watchman.process(RULES); | ||||
| 				watchman.callGUI(); | ||||
| 				watch.process(RULES); | ||||
| 				watch.callGUI(); | ||||
| 			} | ||||
| 		}); | ||||
| 	} | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue