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

View File

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