Fix song playback.
This commit is contained in:
parent
af85bdf703
commit
ec1f9360c4
1 changed files with 1 additions and 1 deletions
|
@ -36,7 +36,7 @@ const MusicKitInterop = {
|
|||
const nowPlayingItem = MusicKit.getInstance().nowPlayingItem;
|
||||
const isPlayingExport = MusicKit.getInstance().isPlaying;
|
||||
const remainingTimeExport = MusicKit.getInstance().currentPlaybackTimeRemaining;
|
||||
const attributes = nowPlayingItem.attributes ?? {};
|
||||
const attributes = (nowPlayingItem != null ? nowPlayingItem.attributes : {});
|
||||
|
||||
attributes.status = isPlayingExport ?? false;
|
||||
attributes.name = attributes?.name ?? 'No Title Found';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue