Fix foundPlayer not found crash. (#383)

This commit is contained in:
Jas Singh
2024-10-27 08:18:44 -07:00
committed by GitHub
parent 14654998ea
commit 25753e5f17

View File

@@ -26,7 +26,7 @@ const Bar = (): BoxWidget => {
self.poll(1000, () => { self.poll(1000, () => {
const foundPlayer = getPlayerInfo(); const foundPlayer = getPlayerInfo();
if (foundPlayer.play_back_status === 'Playing') { if (foundPlayer?.play_back_status === 'Playing') {
update(self, foundPlayer); update(self, foundPlayer);
updateTooltip(self, foundPlayer); updateTooltip(self, foundPlayer);
} }