mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-21 23:22:05 +00:00
Fix warnings in genius plugin
This commit is contained in:
@ -78,7 +78,7 @@ module.exports = () => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function setLyrics(lyricsContainer) {
|
function setLyrics(lyricsContainer) {
|
||||||
lyricsContainer.innerHTML =
|
lyricsContainer.innerHTML =
|
||||||
`<div id="contents" class="style-scope ytmusic-section-list-renderer description ytmusic-description-shelf-renderer genius-lyrics">
|
`<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'}
|
${hasLyrics ? lyrics : 'Could not retrieve lyrics from genius'}
|
||||||
|
|
||||||
@ -91,7 +91,7 @@ module.exports = () => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function setTabsOnclick(callback) {
|
function setTabsOnclick(callback) {
|
||||||
for (tab of [tabs.upNext, tabs.discover]) {
|
for (const tab of [tabs.upNext, tabs.discover]) {
|
||||||
if (tab) {
|
if (tab) {
|
||||||
tab.onclick = callback;
|
tab.onclick = callback;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user