Skip to content

Commit

Permalink
[validator] better enable method for camo proxy
Browse files Browse the repository at this point in the history
  • Loading branch information
nleush committed May 6, 2015
1 parent 4eea5ea commit 4223e3f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/plugins/validators/async/23_camoImage.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,11 @@ function isImage(link) {

module.exports = {

notPlugin: !CONFIG.providerOptions.camoProxy,

prepareLink: function (url, link, options, cb) {

if (!link.href || !CONFIG.providerOptions.camoProxy || !isImage(link) || isSSL(link)) {
if (!link.href || !isImage(link) || isSSL(link)) {
return cb();
}

Expand Down

0 comments on commit 4223e3f

Please sign in to comment.