From acddf49c71cee2c0f58557f5f8bbe904bf964911 Mon Sep 17 00:00:00 2001 From: Bruno Fontes Date: Mon, 3 Jun 2024 14:38:25 -0300 Subject: [PATCH] fix: context menu now working again --- src/background.js | 3 ++- src/manifest_all.json | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) 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",