diff --git a/src/background.js b/src/background.js index 8a67a00..07e998b 100644 --- a/src/background.js +++ b/src/background.js @@ -35,7 +35,8 @@ async function setupContextMenu() { addContextMenu(" em FRA", "fra"); } } -setupContextMenu(); + +chrome.runtime.onInstalled.addListener(() => setupContextMenu()); function addContextMenu(label, languageId) { chrome.contextMenus.create({ diff --git a/src/manifest_all.json b/src/manifest_all.json index 2373fad..b52ae62 100644 --- a/src/manifest_all.json +++ b/src/manifest_all.json @@ -1,7 +1,7 @@ { "manifest_version": 3, "name": "Dicionarios.cc", - "version": "0.0.2", + "version": "0.0.3", "description": "An easy shortcut to Dicionarios.cc", "icons": { "16": "img/logo-16.png",