From bca9e76f397d9dc33e7738c2c8ec6de2631d6c63 Mon Sep 17 00:00:00 2001 From: Sean Yesmunt Date: Tue, 17 Sep 2019 15:12:47 -0400 Subject: [PATCH] fix: typo --- src/ui/component/fileViewer/view.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ui/component/fileViewer/view.jsx b/src/ui/component/fileViewer/view.jsx index ace38081a..cf2c82874 100644 --- a/src/ui/component/fileViewer/view.jsx +++ b/src/ui/component/fileViewer/view.jsx @@ -114,7 +114,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)); if (hidePlayer) { return null;