mirror of
https://github.com/SolninjaA/Chhoto-URL-Extension.git
synced 2025-02-27 10:19:33 +10:00
Fix multiple context menus when the extension is refreshed on Chromium browsers
This commit is contained in:
parent
1cd26a7eb4
commit
870f4aef37
@ -364,6 +364,7 @@ function popupGenerateChhoto(url, title) {
|
|||||||
browser.browserAction.onClicked.addListener(generateChhoto);
|
browser.browserAction.onClicked.addListener(generateChhoto);
|
||||||
|
|
||||||
// Create a context menu
|
// Create a context menu
|
||||||
|
browser.contextMenus.removeAll();
|
||||||
browser.contextMenus.create({
|
browser.contextMenus.create({
|
||||||
title: "Manually generate a Chhoto URL",
|
title: "Manually generate a Chhoto URL",
|
||||||
contexts: ["all"]
|
contexts: ["all"]
|
||||||
|
Loading…
Reference in New Issue
Block a user