Wrap MediaSession in browser support check, fixes #664

This commit is contained in:
James Barnsley
2020-12-01 21:30:28 +13:00
parent 107b6edee0
commit 7bedc5a6db
10 changed files with 11 additions and 11 deletions

View File

@ -417,7 +417,7 @@ export class App extends React.Component {
<Dragger />
<Notifications />
{userHasInteracted && <Stream />}
{userHasInteracted && <MediaSession />}
{userHasInteracted && ('mediaSession' in navigator) && <MediaSession />}
{debug_info && <DebugInfo />}
</div>
);