fix: context menu now working again

This commit is contained in:
Bruno F. Fontes 2024-06-03 14:38:25 -03:00
parent 3efb75a427
commit acddf49c71
Signed by: brunofontes
GPG Key ID: 4DAA810052CF68B6
2 changed files with 3 additions and 2 deletions

View File

@ -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({

View File

@ -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",