Skip to content

Commit

Permalink
querySelector optimization #2
Browse files Browse the repository at this point in the history
  • Loading branch information
Araxeus committed May 8, 2021
1 parent cf4bbf9 commit d2a5110
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions providers/song-info.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,7 @@ const getPausedStatus = async (win) => {

const getArtist = async (win) => {
return await win.webContents.executeJavaScript(`
document.querySelector(".subtitle.ytmusic-player-bar")
?.querySelector(".yt-formatted-string")
document.querySelector(".subtitle.ytmusic-player-bar .yt-formatted-string")
?.textContent
`);
}
Expand Down

0 comments on commit d2a5110

Please sign in to comment.