fix: context menu now working again
This commit is contained in:
		
							parent
							
								
									3efb75a427
								
							
						
					
					
						commit
						acddf49c71
					
				| @ -35,7 +35,8 @@ async function setupContextMenu() { | |||||||
|         addContextMenu(" em FRA", "fra"); |         addContextMenu(" em FRA", "fra"); | ||||||
|     } |     } | ||||||
| } | } | ||||||
| setupContextMenu(); | 
 | ||||||
|  | chrome.runtime.onInstalled.addListener(() => setupContextMenu()); | ||||||
| 
 | 
 | ||||||
| function addContextMenu(label, languageId) { | function addContextMenu(label, languageId) { | ||||||
|     chrome.contextMenus.create({  |     chrome.contextMenus.create({  | ||||||
|  | |||||||
| @ -1,7 +1,7 @@ | |||||||
| { | { | ||||||
|     "manifest_version": 3, |     "manifest_version": 3, | ||||||
|     "name": "Dicionarios.cc", |     "name": "Dicionarios.cc", | ||||||
|     "version": "0.0.2", |     "version": "0.0.3", | ||||||
|     "description": "An easy shortcut to Dicionarios.cc", |     "description": "An easy shortcut to Dicionarios.cc", | ||||||
|     "icons": { |     "icons": { | ||||||
|         "16": "img/logo-16.png", |         "16": "img/logo-16.png", | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user