From a2765545bde2e246a488a70444a2e22c9afd13e4 Mon Sep 17 00:00:00 2001 From: Christian Lauinger Date: Sun, 3 Dec 2023 11:55:30 +0100 Subject: [PATCH] Fix for this._metadata is undefined error in log --- player.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/player.js b/player.js index 9a82311..28b48aa 100644 --- a/player.js +++ b/player.js @@ -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 {