Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/uPagge/uBlogger.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDillon <dillonzq@outlook.com>2020-04-27 21:19:58 +0300
committerGitHub <noreply@github.com>2020-04-27 21:19:58 +0300
commit9003e18adaa5619e5a4b4a78396ff89fbbaa17db (patch)
treea3a66299204572fda5ded350962a58c4e3d597a7 /src
parent66d45520a9cbe663dea9ef1ad30932672c64e8a6 (diff)
fix: simpleicons title override link title error (#270)
Diffstat (limited to 'src')
-rw-r--r--src/js/theme.js2
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));