mirror of
https://github.com/meowarex/TidaLuna-Plugins.git
synced 2026-06-18 03:43:10 +10:00
@@ -168,7 +168,7 @@ const onTrackChanged = function (method: number = 0): void {
|
|||||||
// Only update if the image source has actually changed
|
// Only update if the image source has actually changed
|
||||||
if (albumImageSrc && albumImageSrc !== currentTrackSrc) {
|
if (albumImageSrc && albumImageSrc !== currentTrackSrc) {
|
||||||
currentTrackSrc = albumImageSrc;
|
currentTrackSrc = albumImageSrc;
|
||||||
trace.msg.log(`Track changed, updating background: ${albumImageSrc}`);
|
//trace.msg.log(`Track changed, updating background: ${albumImageSrc}`);
|
||||||
|
|
||||||
// Setting background to the *="nowPlayingContainer" element
|
// Setting background to the *="nowPlayingContainer" element
|
||||||
const nowPlayingContainerElement = document.querySelector('[class*="_nowPlayingContainer"]') as HTMLElement;
|
const nowPlayingContainerElement = document.querySelector('[class*="_nowPlayingContainer"]') as HTMLElement;
|
||||||
|
|||||||
Reference in New Issue
Block a user