aboutsummaryrefslogtreecommitdiff
path: root/player.js
diff options
context:
space:
mode:
authorIndrajith K L2022-11-30 03:17:47 +0530
committerIndrajith K L2022-11-30 03:17:47 +0530
commitaf7303fc62a7a3cb1c660bca51d4acbc27eaab22 (patch)
treec7f5754af5ab12eed8d50786eeb1565a683761a1 /player.js
parentdf7a97ed22f6eb043ff985e96645b09d2c9a4ab0 (diff)
downloadretrowave-player-af7303fc62a7a3cb1c660bca51d4acbc27eaab22.tar.gz
retrowave-player-af7303fc62a7a3cb1c660bca51d4acbc27eaab22.tar.bz2
retrowave-player-af7303fc62a7a3cb1c660bca51d4acbc27eaab22.zip
Changes & Applies document title with currently playing music name
Diffstat (limited to 'player.js')
-rw-r--r--player.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/player.js b/player.js
index e83c3db..d2326d5 100644
--- a/player.js
+++ b/player.js
@@ -181,6 +181,7 @@
function updateInfo(trackDetails) {
titleEl.innerText = trackDetails.title;
+ document.title = `Now Playing... ${trackDetails.title}`;
coverArtEl.style.backgroundImage = `url("${retroWaveRu}${trackDetails.artworkUrl}")`;
}