Make eslint happy again
This commit is contained in:
parent
702d5aba4c
commit
5e2c3b4704
1 changed files with 3 additions and 4 deletions
7
index.js
7
index.js
|
@ -197,7 +197,7 @@ const ContainerService = {
|
||||||
|
|
||||||
getFavicon(object.url).then(url => {
|
getFavicon(object.url).then(url => {
|
||||||
object.favicon = url;
|
object.favicon = url;
|
||||||
}, () => {
|
}).catch(() => {
|
||||||
object.favicon = "";
|
object.favicon = "";
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -217,8 +217,7 @@ const ContainerService = {
|
||||||
const promises = [];
|
const promises = [];
|
||||||
|
|
||||||
for (let object of this._identitiesState[args.userContextId].hiddenTabUrls) { // eslint-disable-line prefer-const
|
for (let object of this._identitiesState[args.userContextId].hiddenTabUrls) { // eslint-disable-line prefer-const
|
||||||
promises.push(this.openTab({ userContextId: args.userContextId,
|
promises.push(this.openTab({ userContextId: args.userContextId, url: object.url }));
|
||||||
url: object.url }));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
this._identitiesState[args.userContextId].hiddenTabUrls = [];
|
this._identitiesState[args.userContextId].hiddenTabUrls = [];
|
||||||
|
@ -289,7 +288,7 @@ const ContainerService = {
|
||||||
for (let object of list) { // eslint-disable-line prefer-const
|
for (let object of list) { // eslint-disable-line prefer-const
|
||||||
promises.push(getFavicon(object.url).then(url => {
|
promises.push(getFavicon(object.url).then(url => {
|
||||||
object.favicon = url;
|
object.favicon = url;
|
||||||
}, () => {
|
}).catch(() => {
|
||||||
object.favicon = "";
|
object.favicon = "";
|
||||||
}));
|
}));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue