From b12a344776d2a4cf9187ff5721de8028a8f6deb7 Mon Sep 17 00:00:00 2001 From: advplyr Date: Sun, 19 Jun 2022 15:43:45 -0500 Subject: [PATCH] Fix:Chromecast button on mobile screen sizes #756 --- client/components/app/Appbar.vue | 4 ++-- client/plugins/chromecast.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/client/components/app/Appbar.vue b/client/components/app/Appbar.vue index bd787494..cfc1c994 100644 --- a/client/components/app/Appbar.vue +++ b/client/components/app/Appbar.vue @@ -20,11 +20,11 @@ cast -
+
- + diff --git a/client/plugins/chromecast.js b/client/plugins/chromecast.js index 9ed3f378..7437fc66 100644 --- a/client/plugins/chromecast.js +++ b/client/plugins/chromecast.js @@ -23,7 +23,7 @@ export default (ctx) => { var castContext = cast.framework.CastContext.getInstance() castContext.setOptions({ receiverApplicationId: process.env.chromecastReceiver, - autoJoinPolicy: chrome.cast.AutoJoinPolicy.ORIGIN_SCOPED + autoJoinPolicy: chrome.cast ? chrome.cast.AutoJoinPolicy.ORIGIN_SCOPED : null }); castContext.addEventListener(