From 870f4aef37e476b5d5c301abd95e006016ee413b Mon Sep 17 00:00:00 2001 From: Solninja A <51935570+SolninjaA@users.noreply.github.com> Date: Thu, 30 Jan 2025 19:10:28 +1000 Subject: [PATCH] Fix multiple context menus when the extension is refreshed on Chromium browsers --- background/background.js | 1 + 1 file changed, 1 insertion(+) diff --git a/background/background.js b/background/background.js index d3b6ba5..8426b53 100644 --- a/background/background.js +++ b/background/background.js @@ -364,6 +364,7 @@ function popupGenerateChhoto(url, title) { browser.browserAction.onClicked.addListener(generateChhoto); // Create a context menu +browser.contextMenus.removeAll(); browser.contextMenus.create({ title: "Manually generate a Chhoto URL", contexts: ["all"]