From cde543499ca493e82df5ce79556834c6796e28f0 Mon Sep 17 00:00:00 2001 From: Sean Yesmunt Date: Thu, 19 Sep 2019 13:06:34 -0400 Subject: [PATCH] use includes over indexOf --- 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 29f85ef2a..6ee73e178 100644 --- a/src/ui/component/fileViewer/view.jsx +++ b/src/ui/component/fileViewer/view.jsx @@ -115,7 +115,7 @@ export default function FileViewer(props: Props) { } const hidePlayer = - !isPlaying || !uri || (!inline && (!floatingPlayerEnabled || ['audio', 'video'].indexOf(mediaType) === -1)); + !isPlaying || !uri || (!inline && (!floatingPlayerEnabled || ['audio', 'video'].includes(mediaType))); if (hidePlayer) { return null;