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 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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue