chore: update share button + fixes

This commit is contained in:
Cory Dransfeldt 2024-02-20 14:24:32 -08:00
parent f45eb74c0f
commit 593c2a5a09
No known key found for this signature in database
9 changed files with 37 additions and 51 deletions

View file

@ -28,6 +28,11 @@ class NowPlaying extends HTMLElement {
const { key } = slot.dataset
const value = data[key]
if (!value || value === typeof undefined) {
slot.style.opacity = '0'
slot.style.display = 'none'
}
if (cache) {
if (key === 'loading') {
slot.style.opacity = '0'