Commit a54c4850 authored by ariasuni's avatar ariasuni

Fix contextual identities menus not showing in non-incognito window

parent bde89269
......@@ -108,7 +108,7 @@ export default class ContextMenu {
|| tab.url === "about:newtab"
|| tab.url === "about:blank",
visible: browser.contextualIdentities !== undefined
&& !document.body.hasAttribute("incognito")
&& document.body.getAttribute("incognito") !== "true"
}, {
id: "contextMenuMoveTab",
title: browser.i18n.getMessage("contextMenuMoveTab"),
......
......@@ -76,7 +76,7 @@ export default class TopMenu {
_showNewTabPopup(e) {
browser.menus.removeAll();
if (document.body.hasAttribute("incognito")) {
if (document.body.getAttribute("incognito") === "true") {
e.preventDefault();
return;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment