mirror of
https://github.com/captbaritone/webamp.git
synced 2026-01-23 18:25:30 +00:00
Only iterate __extraWindows if it's defined
This commit is contained in:
parent
ea55456dc6
commit
a6cd1cb156
1 changed files with 6 additions and 6 deletions
12
js/webamp.js
12
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({
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue