mirror of
https://github.com/DerTyp7/teamspeak-obs-overlay.git
synced 2025-10-29 12:52:09 +01:00
checking if subchannles exists
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
const CONFIG = {
|
||||
apiKey: "9811add4-5ee3-436d-ae9d-d98ff53a1f12",
|
||||
apiKey: "",
|
||||
remoteAppPort: 5899,
|
||||
style: {
|
||||
fontBackground: "rgba(19, 20, 33, 0.5)",
|
||||
|
||||
@@ -6,7 +6,7 @@ function parseChannelInfos(channelInfos) {
|
||||
rootChannels.forEach((rc) => {
|
||||
result.push(new Channel(rc.id, rc.properties.name));
|
||||
|
||||
if (rc.id in subChannels) {
|
||||
if (subChannels !== null && rc.id in subChannels) {
|
||||
subChannels[rc.id].forEach((sc) => {
|
||||
result.push(new Channel(sc.id, sc.properties.name));
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user