fix(browser-extension): context menu option

This commit is contained in:
wanhose 2022-07-31 12:09:44 +02:00
parent 03eea70a0d
commit 5c2a178f68

View File

@ -64,16 +64,14 @@ chrome.contextMenus.onClicked.addListener((info, tab) => {
});
/**
* @description Listens to extension installed/updated
* @description Creates the context menu
*/
chrome.runtime.onInstalled.addListener(() => {
chrome.contextMenus.create({
contexts: ['all'],
documentUrlPatterns: chrome.runtime.getManifest().content_scripts[0].matches,
id: reportMenuItemId,
title: chrome.i18n.getMessage('contextMenuText'),
});
chrome.contextMenus.create({
contexts: ['all'],
documentUrlPatterns: chrome.runtime.getManifest().content_scripts[0].matches,
id: reportMenuItemId,
title: chrome.i18n.getMessage('contextMenuText'),
});
/**