From 5914cefb8f5b49eca0b76f7e4a506d8410ad7832 Mon Sep 17 00:00:00 2001 From: Matvey Soloviev Date: Fri, 13 Apr 2018 07:40:21 -0400 Subject: [PATCH] Fix indentation for PR. --- src/js/background/assignManager.js | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/js/background/assignManager.js b/src/js/background/assignManager.js index 6e8e5d9..b4ca932 100644 --- a/src/js/background/assignManager.js +++ b/src/js/background/assignManager.js @@ -143,14 +143,14 @@ const assignManager = { // in a new tab will not be subject to this protection. // To prevent this, explicitly allow requests that don't change host to go through. if(options.originUrl) { - const originUrl = new window.URL(options.originUrl); - const newUrl = new window.URL(options.url); - if(originUrl.hostname === newUrl.hostname) { - // in fact, set this URL-tab combo exempted so future manual browsing - // within it does also not trigger new prompts - this.storageArea.setExempted(options.url, options.tabId); - return {}; - } + const originUrl = new window.URL(options.originUrl); + const newUrl = new window.URL(options.url); + if(originUrl.hostname === newUrl.hostname) { + // in fact, set this URL-tab combo exempted so future manual browsing + // within it does also not trigger new prompts + this.storageArea.setExempted(options.url, options.tabId); + return {}; + } } const userContextId = this.getUserContextIdFromCookieStore(tab);