From 86beb0e7e5d7e8441118c124595eae76bf1ed35c Mon Sep 17 00:00:00 2001 From: Sky High Date: Wed, 25 Oct 2023 23:30:39 +0200 Subject: [PATCH] Update src/plugins/chromecastPlayer/plugin.js Co-authored-by: Bill Thornton --- src/plugins/chromecastPlayer/plugin.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/chromecastPlayer/plugin.js b/src/plugins/chromecastPlayer/plugin.js index 9113cd116..b98592788 100644 --- a/src/plugins/chromecastPlayer/plugin.js +++ b/src/plugins/chromecastPlayer/plugin.js @@ -510,7 +510,7 @@ function bindEventForRelay(instance, eventName) { Events.on(instance._castPlayer, eventName, function (e, data) { console.debug('[chromecastPlayer] ' + eventName); // skip events without data - if (data && data.ItemId !== '' ) { + if (data?.ItemId) { const state = instance.getPlayerStateInternal(data); Events.trigger(instance, eventName, [state]); }