From 351c059fdf205048171040a32b37e430cd99cfc2 Mon Sep 17 00:00:00 2001 From: DaAwesomeP Date: Sun, 20 Aug 2017 11:58:14 -0500 Subject: [PATCH] fix bg tab context menu id --- background.js | 2 +- common.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/background.js b/background.js index 38781e8..fb62f96 100644 --- a/background.js +++ b/background.js @@ -83,7 +83,7 @@ chrome.contextMenus.onClicked.addListener(function(info, tab) { setOpenIn(openInEnum.CURRENT_TAB); } else if (id.startsWith('resurrect-new-tab-')) { setOpenIn(openInEnum.NEW_TAB); - } else if (id.startsWith('resurrect-new-bg-tab-')) { + } else if (id.startsWith('resurrect-bg-tab-')) { setOpenIn(openInEnum.NEW_BGTAB); } else if (id.startsWith('resurrect-new-window-')) { setOpenIn(openInEnum.NEW_WINDOW); diff --git a/common.js b/common.js index 1978808..6d191ce 100644 --- a/common.js +++ b/common.js @@ -59,7 +59,7 @@ function updateContextRadios() { 'resurrect-new-tab-' + context, {checked: openIn == openInEnum.NEW_TAB}); chrome.contextMenus.update( - 'resurrect-new-bg-tab-' + context, + 'resurrect-bg-tab-' + context, {checked: openIn == openInEnum.NEW_BGTAB}); chrome.contextMenus.update( 'resurrect-new-window-' + context,