Skip to content

Commit

Permalink
fix: iframe issue
Browse files Browse the repository at this point in the history
  • Loading branch information
cyfung1031 committed Dec 4, 2023
1 parent 219e546 commit 4552dc7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions YoutubeGeniusLyrics.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
// @author cuzi
// @icon https://raw.githubusercontent.com/hfg-gmuend/openmoji/master/color/72x72/E044.png
// @supportURL https://github.com/cvzi/Youtube-Genius-Lyrics-userscript/issues
// @version 10.9.47
// @version 10.9.48
// @require https://greasyfork.org/scripts/406698-geniuslyrics/code/GeniusLyrics.js
// @grant GM.xmlHttpRequest
// @grant GM.setValue
Expand Down Expand Up @@ -1897,7 +1897,7 @@ function setupLyricsDisplayDOM (song, searchresultsLengths) { // eslint-disable-
}

const iframe = document.createElement('iframe')
if (typeof webkitCancelAnimationFrame === 'function' && ((window || 0).navigator || 0).brave) {
if (typeof webkitCancelAnimationFrame === 'function') {
iframe.src = (iframeBlankURL || (iframeBlankURL = URL.createObjectURL(new Blob([], { type: 'text/html' })))) // Brave
}
iframe.id = 'lyricsiframe'
Expand Down

0 comments on commit 4552dc7

Please sign in to comment.