Skip to content
This repository has been archived by the owner on Dec 11, 2019. It is now read-only.

Commit

Permalink
Merge pull request #5671 from Ihyatt/feature/removed-redundant-menu-item
Browse files Browse the repository at this point in the history
Remove Open in new tab from context menu while in a private browsing tab
  • Loading branch information
ayumi authored Nov 16, 2016
2 parents e1b985d + adbe7ae commit 78a2fb6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion js/contextMenus.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 78a2fb6

Please sign in to comment.