Fix foundPlayer not found crash. (#383)
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user