Skip to content
Snippets Groups Projects
Commit ea11a7a5 authored by DidierFred's avatar DidierFred Committed by didierfred
Browse files

Remove whitespaces in urls patterns

If user put a whitespace between urls , it will work
parent e3b0e874
No related branches found
No related tags found
No related merge requests found
...@@ -228,8 +228,8 @@ function notify(message) { ...@@ -228,8 +228,8 @@ function notify(message) {
* Make it "blocking" so we can modify the headers. * Make it "blocking" so we can modify the headers.
*/ */
function addListener() { function addListener() {
let target = config.target_page; let target = config.target_page.replace(' ','');
if ((target === "*") || (target === "") || (target === " ")) target = "<all_urls>"; if ((target === "*") || (target === "")) target = "<all_urls>";
// need to had "extraHeaders" option for chrome https://developer.chrome.com/extensions/webRequest#life_cycle_footnote // need to had "extraHeaders" option for chrome https://developer.chrome.com/extensions/webRequest#life_cycle_footnote
if (isChrome) { if (isChrome) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment