fix null pointer when no params on image url

This commit is contained in:
Jared Stehler 2020-03-12 13:16:50 -04:00 committed by Matthew Taylor
parent 35b423c2e8
commit 54b373f350

View file

@ -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