mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2024-11-23 07:47:54 +00:00
fix null pointer when no params on image url
This commit is contained in:
parent
35b423c2e8
commit
54b373f350
1 changed files with 1 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue