Skip to content

Commit

Permalink
Fix for this._metadata is undefined error in log
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisLauinger77 committed Dec 3, 2023
1 parent cc3a181 commit a276554
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion player.js
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ export const Player = GObject.registerClass(
changed = changed.recursiveUnpack();
this._metadata = parseMetadata(this._getDbusProperty("Metadata"));

if (changed.Metadata || this._metadata.isInactive) {
if (changed.Metadata || this._metadata?.isInactive) {
if (this._metadata.isInactive) {
this._mcExtension.hidePlayer(this.busName);
} else {
Expand Down

0 comments on commit a276554

Please sign in to comment.