Skip to content

Commit ea11a7a

Browse files
committed
Remove whitespaces in urls patterns
If user put a whitespace between urls , it will work
1 parent e3b0e87 commit ea11a7a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

background.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -228,8 +228,8 @@ function notify(message) {
228228
* Make it "blocking" so we can modify the headers.
229229
*/
230230
function addListener() {
231-
let target = config.target_page;
232-
if ((target === "*") || (target === "") || (target === " ")) target = "<all_urls>";
231+
let target = config.target_page.replace(' ','');
232+
if ((target === "*") || (target === "")) target = "<all_urls>";
233233

234234
// need to had "extraHeaders" option for chrome https://developer.chrome.com/extensions/webRequest#life_cycle_footnote
235235
if (isChrome) {

0 commit comments

Comments
 (0)