From a6cd1cb15602f29fffdf38ffc6f554eefc0db389 Mon Sep 17 00:00:00 2001 From: Jordan Eldredge Date: Fri, 22 Jun 2018 00:07:49 -0700 Subject: [PATCH] Only iterate __extraWindows if it's defined --- js/webamp.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/js/webamp.js b/js/webamp.js index 2fc6065b..728ee8a7 100644 --- a/js/webamp.js +++ b/js/webamp.js @@ -97,13 +97,13 @@ class Winamp { id: genWindow.id || `${genWindow.title}-${uniqueId()}`, ...genWindow })); - } - __extraWindows.forEach(genWindow => { - if (genWindow.isVisualizer) { - this.store.dispatch({ type: REGISTER_VISUALIZER, id: genWindow.id }); - } - }); + __extraWindows.forEach(genWindow => { + if (genWindow.isVisualizer) { + this.store.dispatch({ type: REGISTER_VISUALIZER, id: genWindow.id }); + } + }); + } this.genWindows.forEach(genWindow => { this.store.dispatch({