mirror of
https://github.com/dillonzq/LoveIt.git
synced 2025-03-21 22:38:52 +01:00
fix: simpleicons title override link title error (#270)
This commit is contained in:
parent
66d45520a9
commit
9003e18ada
3 changed files with 4 additions and 2 deletions
2
assets/js/theme.min.js
vendored
2
assets/js/theme.min.js
vendored
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -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));
|
||||
|
|
Loading…
Add table
Reference in a new issue