attempt sending messages to trigger the pop-up
This commit is contained in:
		
							parent
							
								
									df68375d7b
								
							
						
					
					
						commit
						b7b19fed6f
					
				
					 1 changed files with 8 additions and 3 deletions
				
			
		|  | @ -1,6 +1,5 @@ | ||||||
| import Menu from '/scripts/GUI/menus.js'; | import Menu from '/scripts/GUI/menus.js'; | ||||||
| import texts from "/scripts/mapping/read.js"; | import texts from "/scripts/mapping/read.js"; | ||||||
| import ManagedSidebar from "./sidebar.js"; |  | ||||||
| 
 | 
 | ||||||
| export default class MenuEntry { | export default class MenuEntry { | ||||||
|      /* Create all entries. */ |      /* Create all entries. */ | ||||||
|  | @ -16,12 +15,18 @@ export default class MenuEntry { | ||||||
| 		this.menu.show(); | 		this.menu.show(); | ||||||
| 	} | 	} | ||||||
| 
 | 
 | ||||||
| 	/* Disable. */ | 	/* | ||||||
|  | 	Disable. | ||||||
|  | 	*/ | ||||||
| 	disable () { | 	disable () { | ||||||
| 		this.menu.remove(); | 		this.menu.remove(); | ||||||
| 	} | 	} | ||||||
| 
 | 
 | ||||||
|  | 	/* | ||||||
|  | 	The onclick event | ||||||
|  | 	*/ | ||||||
| 	static onclick() { | 	static onclick() { | ||||||
| 		ManagedSidebar.enable(); | 		// Send the message to open the side panel. 
 | ||||||
|  | 		chrome.runtime.sendMessage({"action": "popup_open"}); | ||||||
| 	}; | 	}; | ||||||
| } | } | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue