From ea11a7a52c7e6701f151bae3665cf455b26b94f2 Mon Sep 17 00:00:00 2001
From: DidierFred <34892849+didierfred@users.noreply.github.com>
Date: Mon, 31 Aug 2020 23:02:40 +0200
Subject: [PATCH] Remove whitespaces in urls  patterns If user put a whitespace
 between urls , it will work

---
 background.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/background.js b/background.js
index 7110cfc..5f5f439 100644
--- a/background.js
+++ b/background.js
@@ -228,8 +228,8 @@ function notify(message) {
 * Make it "blocking" so we can modify the headers.
 */
 function addListener() {
-  let target = config.target_page;
-  if ((target === "*") || (target === "") || (target === " ")) target = "<all_urls>";
+  let target = config.target_page.replace(' ',''); 
+  if ((target === "*") || (target === "")) target = "<all_urls>";
 
   // need to had "extraHeaders" option for chrome https://developer.chrome.com/extensions/webRequest#life_cycle_footnote
   if (isChrome) {
-- 
GitLab