From 7f252c75b81f41fb0629868916193ed08618f4dd Mon Sep 17 00:00:00 2001 From: Samuel Crypto Date: Thu, 11 Oct 2018 18:10:13 -0400 Subject: [PATCH] Final lint fixes --- src/js/background/backgroundLogic.js | 2 ++ src/js/proxified-containers.js | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/js/background/backgroundLogic.js b/src/js/background/backgroundLogic.js index a2d2120..1b2f6ac 100644 --- a/src/js/background/backgroundLogic.js +++ b/src/js/background/backgroundLogic.js @@ -50,6 +50,8 @@ const backgroundLogic = { //We cannot yet access the new cookieStoreId via this.cookieStoreId(...), so we take this from the resolved promise donePromise.then((identity) => { window.proxifiedContainers.set(identity.cookieStoreId, options.proxy); + }).catch(() => { + //Empty because this should never happen theoretically. }); } await donePromise; diff --git a/src/js/proxified-containers.js b/src/js/proxified-containers.js index be538c9..cdea00a 100644 --- a/src/js/proxified-containers.js +++ b/src/js/proxified-containers.js @@ -2,12 +2,12 @@ if (!("toJSON" in Error.prototype)) Object.defineProperty(Error.prototype, "toJSON", { value: function() { - let alt = {}; + const alt = {}; Object.getOwnPropertyNames(this).forEach(function(key) { alt[key] = this[key]; }, this); - + return alt; }, configurable: true,