Skip to content

Commit

Permalink
fix #11: allow facebook in private tabs
Browse files Browse the repository at this point in the history
  • Loading branch information
groovecoder committed Mar 22, 2018
1 parent e84dd8f commit 7386ae1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion background.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ async function containFacebook(options) {
const tab = await browser.tabs.get(options.tabId);
const tabCookieStoreId = tab.cookieStoreId;
if (isFacebook) {
if (tabCookieStoreId !== facebookCookieStoreId) {
if (tabCookieStoreId !== facebookCookieStoreId && !tab.incognito) {
// See https://github.com/mozilla/contain-facebook/issues/23
// Sometimes this add-on is installed but doesn't get a facebookCookieStoreId ?
if (facebookCookieStoreId) {
Expand Down

0 comments on commit 7386ae1

Please sign in to comment.