mirror of
https://github.com/danbulant/dribbblish-dynamic-theme
synced 2026-05-25 21:11:58 +00:00
fix "Invalid date"
This commit is contained in:
parent
50b4a73654
commit
7ef21577f0
1 changed files with 1 additions and 1 deletions
|
|
@ -383,7 +383,7 @@ function copyToClipboard(text) {
|
|||
/* js */
|
||||
async function getAlbumRelease(uri) {
|
||||
const info = await Spicetify.CosmosAsync.get(`hm://album/v1/album-app/album/${uri}/desktop`);
|
||||
return { year: info.year, month: (info.month ?? 1) - 1, day: info.day ?? 0 };
|
||||
return { year: info.year, month: info.month ?? 1, day: info.day ?? 1 };
|
||||
}
|
||||
|
||||
function isLight(hex) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue