pstream is dead; long live pstream taciturnaxolotl.github.io/pstream-ng/
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

If cast framework is not available (e.g., on Safari), hide the button

Pas 388a25fe 5a17ee5f

+6 -1
+6 -1
src/components/player/atoms/Chromecast.tsx
··· 28 28 useEffect(() => { 29 29 const w = window as unknown as { cast?: typeof cast }; 30 30 const castFramework = w.cast?.framework; 31 - if (!castFramework) return; 31 + 32 + // If cast framework is not available (e.g., on Safari), hide the button 33 + if (!castFramework) { 34 + setCastHidden(true); 35 + return; 36 + } 32 37 33 38 const context = castFramework.CastContext.getInstance(); 34 39 const updateVisibility = () => {