Skip to content
This repository has been archived by the owner on Feb 3, 2021. It is now read-only.

Commit

Permalink
Fix crash when src attribute is missing
Browse files Browse the repository at this point in the history
  • Loading branch information
claviska committed May 8, 2017
1 parent 9afa763 commit cbe1acf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/modules/dynamic_images.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ const self = {

// Find each image in the content
$('img').each((index, el) => {
let src = $(el).attr('src');
let src = $(el).attr('src') || '';
let path = Url.parse(src).pathname;
let srcset = [];

Expand Down

0 comments on commit cbe1acf

Please # to comment.