Commit 7a50f855 by julianbei

adding fault tolerance for missing pictures

parent 44627357
......@@ -9,7 +9,12 @@ var baseAnalysis = function($, profile){
profile.industry = $("dl#demographics dd:nth-child(4)").text();
// Picture
try {
profile.picture = $(".profile-picture img")[0].attributes['data-delayed-url']._nodeValue;
} catch (err) {
profile.picture = '';
}
return profile;
}
module.exports = baseAnalysis;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment