aboutsummaryrefslogtreecommitdiffstats
path: root/src/pages/background
diff options
context:
space:
mode:
Diffstat (limited to 'src/pages/background')
-rw-r--r--src/pages/background/background.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/pages/background/background.js b/src/pages/background/background.js
index 3edfa2ee..74a41866 100644
--- a/src/pages/background/background.js
+++ b/src/pages/background/background.js
@@ -253,19 +253,19 @@ browser.commands.onCommand.addListener(
}
)
-browser.menus.create({
+browser.contextMenus.create({
id: "settings",
title: browser.i18n.getMessage("Settings"),
contexts: ["browser_action"]
});
-browser.menus.create({
+browser.contextMenus.create({
id: "switchInstance",
title: chrome.i18n.getMessage("switchInstance"),
contexts: ["browser_action"]
});
-browser.menus.onClicked.addListener((info, tab) => {
+browser.contextMenus.onClicked.addListener((info, tab) => {
if (info.menuItemId == 'switchInstance') {
let url;
try { url = new URL(tab.url); }