From 67f3c306da44836caa72b077bed146e8321dadff Mon Sep 17 00:00:00 2001 From: didierfred <didierfred@gmail.com> Date: Fri, 5 Nov 2021 18:07:45 +0100 Subject: [PATCH] Replace all space in url values instead of only one space --- background.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/background.js b/background.js index 8c34be0..b9b3192 100644 --- a/background.js +++ b/background.js @@ -334,7 +334,7 @@ function notify(message) { * Make it "blocking" so we can modify the headers. */ function addListener() { - let target = config.target_page.replace(' ',''); + let target = config.target_page.replaceAll(' ',''); if ((target === "*") || (target === "")) target = "<all_urls>"; // need to had "extraHeaders" option for chrome https://developer.chrome.com/extensions/webRequest#life_cycle_footnote -- GitLab