edits from input

This commit is contained in:
Kendall Werts 2019-10-19 22:31:12 -05:00
parent c4650d12bd
commit c832cf73aa

View file

@ -4,7 +4,7 @@ const assignManager = {
MENU_SEPARATOR_ID: "separator", MENU_SEPARATOR_ID: "separator",
MENU_HIDE_ID: "hide-container", MENU_HIDE_ID: "hide-container",
MENU_MOVE_ID: "move-to-new-window-container", MENU_MOVE_ID: "move-to-new-window-container",
OPEN_IN_CONTAINER: "open-link-in-container-tab", OPEN_IN_CONTAINER: "open-bookmark-in-container-tab",
storageArea: { storageArea: {
area: browser.storage.local, area: browser.storage.local,
@ -222,10 +222,10 @@ const assignManager = {
init() { init() {
browser.contextMenus.onClicked.addListener((info, tab) => { browser.contextMenus.onClicked.addListener((info, tab) => {
if (tab) { if (info.bookmarkId) {
this._onClickedHandler(info, tab);
} else {
this._onClickedBookmark(info); this._onClickedBookmark(info);
} else {
this._onClickedHandler(info, tab);
} }
}); });
@ -467,7 +467,7 @@ const assignManager = {
async initBookmarksMenu() { async initBookmarksMenu() {
browser.contextMenus.create({ browser.contextMenus.create({
id: this.OPEN_IN_CONTAINER, id: this.OPEN_IN_CONTAINER,
title: "Open Link in Container Tab", title: "Open Bookmark in Container Tab",
contexts: ["bookmark"], contexts: ["bookmark"],
}); });