mirror of
https://github.com/DerTyp7/teamspeak-obs-overlay.git
synced 2025-10-30 21:27:10 +01:00
[feature] deploy to single file
This commit is contained in:
@@ -44,7 +44,6 @@ export default function App() {
|
||||
}, []);
|
||||
|
||||
useEffect(() => {
|
||||
console.log("====================================");
|
||||
setCurrentStates();
|
||||
}, [clients, channels, connections, activeConnectionId]);
|
||||
|
||||
|
||||
@@ -40,7 +40,7 @@ export class TS5Connection {
|
||||
name: "TS5 OBS Overlay",
|
||||
description: "A OBS overlay for TS5 by DerTyp876",
|
||||
content: {
|
||||
apiKey: localStorage.getItem("apiKey") || "",
|
||||
apiKey: localStorage.getItem("apiKey") ?? "",
|
||||
},
|
||||
},
|
||||
};
|
||||
@@ -51,6 +51,10 @@ export class TS5Connection {
|
||||
this.ws.send(JSON.stringify(initalPayload));
|
||||
};
|
||||
|
||||
this.ws.onclose = (event) => {
|
||||
console.log("WebSocket connection closed", event);
|
||||
};
|
||||
|
||||
// Handle messages received from TS5 client
|
||||
// See TS5MessageHandler class
|
||||
this.ws.onmessage = (event) => {
|
||||
|
||||
Reference in New Issue
Block a user