possible fix for #27

This commit is contained in:
Ray Lothian 2019-03-13 10:29:37 +01:00
parent 1872fbcb3c
commit abca844d5d

View file

@ -188,7 +188,7 @@ function match({url, tabId}) {
return true;
}
else if (prefs.exactMatch === false) {
return s.endsWith(h) || h.endsWith(s);
return s.endsWith('.' + h) || h.endsWith('.' + s);
}
});
}
@ -201,7 +201,7 @@ function match({url, tabId}) {
return true;
}
else if (prefs.exactMatch === false) {
return s.endsWith(h) || h.endsWith(s);
return s.endsWith('.' + h) || h.endsWith('.' + s);
}
}) === false;
}
@ -216,7 +216,7 @@ function match({url, tabId}) {
return true;
}
else if (prefs.exactMatch === false) {
return s.endsWith(h) || h.endsWith(s);
return s.endsWith('.' + h) || h.endsWith('.' + s);
}
}).shift();
let s = prefs.custom[key] || prefs.custom['*'];