From 5e2c3b4704b2d35ae39a7f5579843d136320c308 Mon Sep 17 00:00:00 2001 From: baku Date: Wed, 18 Jan 2017 18:09:42 +0100 Subject: [PATCH] Make eslint happy again --- index.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/index.js b/index.js index 5ee34d2..ff7490a 100644 --- a/index.js +++ b/index.js @@ -197,7 +197,7 @@ const ContainerService = { getFavicon(object.url).then(url => { object.favicon = url; - }, () => { + }).catch(() => { object.favicon = ""; }); @@ -217,8 +217,7 @@ const ContainerService = { const promises = []; for (let object of this._identitiesState[args.userContextId].hiddenTabUrls) { // eslint-disable-line prefer-const - promises.push(this.openTab({ userContextId: args.userContextId, - url: object.url })); + promises.push(this.openTab({ userContextId: args.userContextId, url: object.url })); } this._identitiesState[args.userContextId].hiddenTabUrls = []; @@ -289,7 +288,7 @@ const ContainerService = { for (let object of list) { // eslint-disable-line prefer-const promises.push(getFavicon(object.url).then(url => { object.favicon = url; - }, () => { + }).catch(() => { object.favicon = ""; })); }