mirror of
https://github.com/DerTyp7/teamspeak-obs-overlay.git
synced 2025-10-29 12:52:09 +01:00
api key now gets shown in console
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
const CONFIG = {
|
||||
apiKey: "",
|
||||
apiKey: "9811add4-5ee3-436d-ae9d-d98ff53a1f12",
|
||||
style: {
|
||||
fontBackground: "rgba(19, 20, 33, 0.5)",
|
||||
fontColor: "#ffffff",
|
||||
|
||||
@@ -23,10 +23,15 @@ function main() {
|
||||
|
||||
ws.onmessage = (event) => {
|
||||
let data = JSON.parse(event.data);
|
||||
console.log(data);
|
||||
// console.log(data);
|
||||
switch (data.type) {
|
||||
case "auth":
|
||||
handleAuthMessage(data);
|
||||
console.log(
|
||||
"%c --> API-KEY: %s ",
|
||||
"color:red;font-weight:bold;",
|
||||
` ${data.payload.apiKey}`
|
||||
);
|
||||
break;
|
||||
case "clientMoved":
|
||||
handleClientMoved(data);
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
function handleAuthMessage(data) {
|
||||
console.log("Handling auth message");
|
||||
channelList.setItems(
|
||||
parseChannelInfos(data.payload.connections[0].channelInfos)
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user