Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

General fixes #2898

Merged
merged 4 commits into from
Sep 19, 2019
Merged

General fixes #2898

merged 4 commits into from
Sep 19, 2019

Conversation

neb-b
Copy link

@neb-b neb-b commented Sep 17, 2019

No description provided.

@neb-b neb-b requested a review from kauffj September 18, 2019 21:14
@lbry-bot lbry-bot assigned kauffj and unassigned neb-b Sep 18, 2019
@@ -114,7 +115,7 @@ export default function FileViewer(props: Props) {
}

const hidePlayer =
!isPlaying || !uri || (!inline && (!floatingPlayerEnabled || (mediaType !== 'video' || mediaType !== 'audio')));
!isPlaying || !uri || (!inline && (!floatingPlayerEnabled || ['audio', 'video'].indexOf(mediaType) === -1));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

includes is mildly preferable

@lbry-bot lbry-bot assigned neb-b and unassigned kauffj Sep 18, 2019
@neb-b neb-b merged commit cde5434 into master Sep 19, 2019
@neb-b neb-b deleted the general-fixes branch October 15, 2019 19:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants