Fix assignment and usage

This commit is contained in:
Aaron-P 2019-04-14 19:44:12 -06:00 committed by GitHub
parent 0cbfb5f0e4
commit 18989fcff5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,6 +1,6 @@
const DEFAULT_TAB = "about:newtab";
const BROWSER_NAME = (await browser.runtime.getBrowserInfo()).name.toLowerCase();
const backgroundLogic = {
BROWSER_NAME: (await browser.runtime.getBrowserInfo()).name.toLowerCase(),
NEW_TAB_PAGES: new Set([
"about:startpage",
"about:newtab",
@ -20,7 +20,7 @@ const backgroundLogic = {
if (!cookieStoreId) {
return false;
}
const container = cookieStoreId.replace(BROWSER_NAME + "-container-", "");
const container = cookieStoreId.replace(this.BROWSER_NAME + "-container-", "");
if (container !== cookieStoreId) {
return container;
}