mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2025-03-20 16:15:09 +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('=');
|
sParameterName = sURLVariables[i].split('=');
|
||||||
obj[sParameterName[0]] = sParameterName[1];
|
obj[sParameterName[0]] = sParameterName[1];
|
||||||
}
|
}
|
||||||
return obj;
|
|
||||||
} else {
|
|
||||||
return undefined;
|
|
||||||
}
|
}
|
||||||
|
return obj;
|
||||||
};
|
};
|
||||||
|
|
||||||
// Execute actions on images generated from Markdown pages
|
// Execute actions on images generated from Markdown pages
|
||||||
|
|
Loading…
Add table
Reference in a new issue