mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-17 13:12:07 +00:00
Merge branch 'fix-lyrics' of https://github.com/Araxeus/youtube-music into fix-lyrics
This commit is contained in:
@ -78,11 +78,12 @@ module.exports = () => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function setLyrics(lyricsContainer) {
|
function setLyrics(lyricsContainer) {
|
||||||
lyricsContainer.innerHTML = `<div id="contents" class="style-scope ytmusic-section-list-renderer description ytmusic-description-shelf-renderer genius-lyrics">
|
lyricsContainer.innerHTML =
|
||||||
${hasLyrics ? lyrics : 'Could not retrieve lyrics from genius'}
|
`<div id="contents" class="style-scope ytmusic-section-list-renderer description ytmusic-description-shelf-renderer genius-lyrics">
|
||||||
|
${hasLyrics ? lyrics : 'Could not retrieve lyrics from genius'}
|
||||||
|
|
||||||
<yt-formatted-string class="footer style-scope ytmusic-description-shelf-renderer" style="text-align: initial"></yt-formatted-string>
|
<yt-formatted-string class="footer style-scope ytmusic-description-shelf-renderer" style="text-align: initial"></yt-formatted-string>
|
||||||
</div>`;
|
</div>`;
|
||||||
if (hasLyrics) {
|
if (hasLyrics) {
|
||||||
lyricsContainer.querySelector('.footer').textContent = 'Source: Genius';
|
lyricsContainer.querySelector('.footer').textContent = 'Source: Genius';
|
||||||
enableLyricsTab();
|
enableLyricsTab();
|
||||||
|
|||||||
Reference in New Issue
Block a user