From adbe7ae9eeae20811cd535802893fa20733c803e Mon Sep 17 00:00:00 2001 From: Inas Hyatt Date: Tue, 15 Nov 2016 21:38:34 -0800 Subject: [PATCH] redundant menu link removed --- js/contextMenus.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/js/contextMenus.js b/js/contextMenus.js index 6a2cb927a4e..522c1c694ec 100644 --- a/js/contextMenus.js +++ b/js/contextMenus.js @@ -902,7 +902,10 @@ function mainTemplateInit (nodeProps, frame) { const isAboutPage = aboutUrls.has(frame.get('location')) if (isLink) { - template.push(openInNewTabMenuItem(nodeProps.linkURL, frame.get('isPrivate'), frame.get('partitionNumber'), frame.get('key')), + if (!frame.get('isPrivate')) { + template.push(openInNewTabMenuItem(nodeProps.linkURL, frame.get('isPrivate'), frame.get('partitionNumber'), frame.get('key'))) + } + template.push( openInNewPrivateTabMenuItem(nodeProps.linkURL, frame.get('key')), openInNewWindowMenuItem(nodeProps.linkURL, frame.get('isPrivate'), frame.get('partitionNumber')), CommonMenu.separatorMenuItem,