Fix assignment and usage
This commit is contained in:
parent
0cbfb5f0e4
commit
18989fcff5
1 changed files with 2 additions and 2 deletions
|
@ -1,6 +1,6 @@
|
||||||
const DEFAULT_TAB = "about:newtab";
|
const DEFAULT_TAB = "about:newtab";
|
||||||
const BROWSER_NAME = (await browser.runtime.getBrowserInfo()).name.toLowerCase();
|
|
||||||
const backgroundLogic = {
|
const backgroundLogic = {
|
||||||
|
BROWSER_NAME: (await browser.runtime.getBrowserInfo()).name.toLowerCase(),
|
||||||
NEW_TAB_PAGES: new Set([
|
NEW_TAB_PAGES: new Set([
|
||||||
"about:startpage",
|
"about:startpage",
|
||||||
"about:newtab",
|
"about:newtab",
|
||||||
|
@ -20,7 +20,7 @@ const backgroundLogic = {
|
||||||
if (!cookieStoreId) {
|
if (!cookieStoreId) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
const container = cookieStoreId.replace(BROWSER_NAME + "-container-", "");
|
const container = cookieStoreId.replace(this.BROWSER_NAME + "-container-", "");
|
||||||
if (container !== cookieStoreId) {
|
if (container !== cookieStoreId) {
|
||||||
return container;
|
return container;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue