mirror of
https://github.com/kkapsner/CanvasBlocker
synced 2025-07-04 20:46:39 +02:00
parent
35c6a82480
commit
951277e922
10 changed files with 411 additions and 178 deletions
|
@ -31,7 +31,7 @@ function getDomainRegExpList(domainList){
|
|||
return {
|
||||
match: function(url){
|
||||
if (domain){
|
||||
return url.hostname.match(regExp);
|
||||
return (url.hostname || "").match(regExp);
|
||||
}
|
||||
else {
|
||||
return url.href.match(regExp);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue