mirror of
https://github.com/meowarex/TidaLuna-Plugins.git
synced 2026-06-18 03:43:10 +10:00
Suppressed Random Errors
This commit is contained in:
@@ -160,7 +160,7 @@ const onTrackChanged = function (method: number = 0): void {
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
cleanUpDynamicArt();
|
cleanUpDynamicArt();
|
||||||
trace.msg.log("Couldn't get album art");
|
//trace.msg.log("Couldn't get album art"); - Broken as fucky
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -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}`); - Accidentally left this in Prod...
|
||||||
|
|
||||||
// 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