1
0
Fork 0
mirror of https://github.com/dillonzq/LoveIt.git synced 2025-03-21 22:38:52 +01:00

fix: simpleicons title override link title error ()

This commit is contained in:
Dillon 2020-04-28 02:19:58 +08:00 committed by GitHub
parent 66d45520a9
commit 9003e18ada
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 2 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -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));