Doubleclick fix

This commit is contained in:
Kevin Röbert 2017-08-04 04:37:19 +02:00
parent 1dabe29077
commit 1479041e92
2 changed files with 3 additions and 3 deletions

View File

@ -77,7 +77,7 @@ fetchFromURL();
* @param {String} _name Provider name
* @param {boolean} completeProvider Set URL Pattern as rule
*/
function Provider(_name,_completeProvider=false){
function Provider(_name,_completeProvider){
var name = name;
var urlPattern;
var rules = new Array();
@ -90,7 +90,7 @@ function Provider(_name,_completeProvider=false){
*/
this.setURLPattern = function(urlPatterns) {
if(_completeProvider){
rules.push(urlPattern);
rules.push(urlPatterns);
}
urlPattern = new RegExp(urlPatterns, "mgi");

View File

@ -55,7 +55,7 @@
"exceptions": []
},
"doubleclick": {
"urlPattern": ".*(doubleclick\\.net)\\/.*",
"urlPattern": ".*(doubleclick).*",
"completeProvider": true,
"rules": [],
"exceptions": []