diff --git a/bin/addons-linter.sh b/bin/addons-linter.sh index 09161b8..2a8798d 100755 --- a/bin/addons-linter.sh +++ b/bin/addons-linter.sh @@ -1,4 +1,4 @@ -#!/bin/env bash +#!/usr/bin/env bash # This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this diff --git a/src/_locales b/src/_locales index bdaa012..7df9158 160000 --- a/src/_locales +++ b/src/_locales @@ -1 +1 @@ -Subproject commit bdaa01291b7367a5e815470fd263ea36c862fe32 +Subproject commit 7df9158b9dfddab256285d8fb7f342dc8a3a8c1d diff --git a/src/js/background/assignManager.js b/src/js/background/assignManager.js index 8a462db..fec0dbb 100644 --- a/src/js/background/assignManager.js +++ b/src/js/background/assignManager.js @@ -225,14 +225,16 @@ window.assignManager = { return {}; } this.removeContextMenu(); - let [tab, siteSettings] = await Promise.all([ + const a = await Promise.all([ browser.tabs.get(options.tabId), this.storageArea.get(options.url) ]); + const tab = a[0]; + let siteSettings = a[1]; let container = false; let cookieStoreId = false; if (siteSettings) { - cookieStoreId = backgroundLogic.cookieStoreId(siteSettings.userContextId) + cookieStoreId = backgroundLogic.cookieStoreId(siteSettings.userContextId); } try { container = cookieStoreId && await browser.contextualIdentities diff --git a/src/js/background/backgroundLogic.js b/src/js/background/backgroundLogic.js index 7554c95..4516888 100644 --- a/src/js/background/backgroundLogic.js +++ b/src/js/background/backgroundLogic.js @@ -218,7 +218,7 @@ const backgroundLogic = { async setRedirectState(cookieStoreId, enable) { const containerState = await identityState.storageArea.get(cookieStoreId); try { - containerState.redirectDisable = !enable + containerState.redirectDisable = !enable; return await identityState.storageArea.set(cookieStoreId, containerState); } catch (error) { // console.error(`No container: ${cookieStoreId}`);