From 2887ab88a4073deca590061454b9708329382e04 Mon Sep 17 00:00:00 2001 From: Max Goodhart Date: Thu, 2 Jul 2020 16:43:35 -0700 Subject: [PATCH] Remove no longer necessary customStreams search --- src/browser/overlay.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/browser/overlay.js b/src/browser/overlay.js index 9a82138..75a2c20 100644 --- a/src/browser/overlay.js +++ b/src/browser/overlay.js @@ -15,7 +15,7 @@ import TwitchIcon from '../static/twitch.svg' import YouTubeIcon from '../static/youtube.svg' import SoundIcon from '../static/volume-up-solid.svg' -function Overlay({ config, views, streams, customStreams }) { +function Overlay({ config, views, streams }) { const { width, height } = config const activeViews = views .map(({ state, context }) => State.from(state, context)) @@ -24,9 +24,7 @@ function Overlay({ config, views, streams, customStreams }) {
{activeViews.map((viewState) => { const { content, pos } = viewState.context - const data = [...streams, ...customStreams].find( - (d) => content.url === d.link, - ) + const data = streams.find((d) => content.url === d.link) const isListening = viewState.matches( 'displaying.running.audio.listening', )