Skip to content

Commit

Permalink
Merge pull request #28 from mozilla/fix-pbm-11
Browse files Browse the repository at this point in the history
fix #11: allow facebook in private tabs
  • Loading branch information
groovecoder authored Mar 22, 2018
2 parents e84dd8f + 7386ae1 commit 9165ca6
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 9165ca6

Please sign in to comment.