diff options
author | Dillon <dillonzq@outlook.com> | 2020-04-27 21:19:58 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-27 21:19:58 +0300 |
commit | 9003e18adaa5619e5a4b4a78396ff89fbbaa17db (patch) | |
tree | a3a66299204572fda5ded350962a58c4e3d597a7 /src | |
parent | 66d45520a9cbe663dea9ef1ad30932672c64e8a6 (diff) |
fix: simpleicons title override link title error (#270)
Diffstat (limited to 'src')
-rw-r--r-- | src/js/theme.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/js/theme.js b/src/js/theme.js index ef56582..ebb9cf1 100644 --- a/src/js/theme.js +++ b/src/js/theme.js @@ -52,6 +52,8 @@ class Theme { const $svg = $temp.firstChild; $svg.setAttribute('data-svg-src', $icon.getAttribute('data-svg-src')); $svg.classList.add('icon'); + const $titleElements = $svg.getElementsByTagName('title'); + if ($titleElements.length) $svg.removeChild($titleElements[0]); $icon.parentElement.replaceChild($svg, $icon); }) .catch(console.error.bind(console)); |