diff --git a/src/core/render/index.js b/src/core/render/index.js index cfd7904416..4f4a6da3e5 100644 --- a/src/core/render/index.js +++ b/src/core/render/index.js @@ -413,7 +413,7 @@ export function Render(Base) { if (el) { if (config.repo) { - html += tpl.corner(config.repo, config.cornerExternalLinkTarget); + html += tpl.corner(config.repo, config.cornerExternalLinkTarge); } if (config.coverpage) { diff --git a/src/core/render/tpl.js b/src/core/render/tpl.js index 47ceeab746..595cdff763 100644 --- a/src/core/render/tpl.js +++ b/src/core/render/tpl.js @@ -1,10 +1,10 @@ /** * Render github corner * @param {Object} data URL for the View Source on Github link - * @param {String} cornerExternalLinkTarget value of the target attribute of the link + * @param {String} cornerExternalLinkTarge value of the target attribute of the link * @return {String} SVG element as string */ -export function corner(data, cornerExternalLinkTarget) { +export function corner(data, cornerExternalLinkTarge) { if (!data) { return ''; } @@ -15,10 +15,10 @@ export function corner(data, cornerExternalLinkTarget) { data = data.replace(/^git\+/, ''); // Double check - cornerExternalLinkTarget = cornerExternalLinkTarget || '_blank'; + cornerExternalLinkTarge = cornerExternalLinkTarge || '_blank'; return ( - `` + + `` + '