diff --git a/lib/Pingback.js b/lib/Pingback.js index 86b6708..2f4f04a 100644 --- a/lib/Pingback.js +++ b/lib/Pingback.js @@ -14,7 +14,7 @@ function Pingback(parameters, ipAddress, pingbackForBrick) { this.errors = []; if(typeof(parameters) === "string"){ parameters = querystring.parse(parameters); - } else if(parameters instanceof Object){ + } else if(typeof(parameters) === "object"){ } else { console.log("Error: Please pass Object as the queryData in Paymentwall.Pingback(queryData, ip)");