mirror of
https://github.com/danbulant/dribbblish-dynamic-theme
synced 2026-06-09 09:42:26 +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 */
|
/* js */
|
||||||
async function getAlbumRelease(uri) {
|
async function getAlbumRelease(uri) {
|
||||||
const info = await Spicetify.CosmosAsync.get(`hm://album/v1/album-app/album/${uri}/desktop`);
|
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) {
|
function isLight(hex) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue