Skip to content

Commit

Permalink
fix null pointer when no params on image url
Browse files Browse the repository at this point in the history
  • Loading branch information
jared-stehler authored and matalo33 committed Jun 1, 2020
1 parent 35b423c commit 54b373f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions static/js/hugo-learn.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,8 @@ var getUrlParameter = function getUrlParameter(sPageURL) {
sParameterName = sURLVariables[i].split('=');
obj[sParameterName[0]] = sParameterName[1];
}
return obj;
} else {
return undefined;
}
return obj;
};

// Execute actions on images generated from Markdown pages
Expand Down

0 comments on commit 54b373f

Please sign in to comment.