mirror of
https://github.com/McShelby/hugo-theme-relearn
synced 2025-04-30 16:38:47 +08:00
fix null pointer when no params on image url
This commit is contained in:
parent
35b423c2e8
commit
54b373f350
@ -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…
x
Reference in New Issue
Block a user