From 973638180f7f06ae5a146ce0070780911f66b0b7 Mon Sep 17 00:00:00 2001 From: Janis Date: Wed, 11 Jan 2023 11:30:48 +0100 Subject: [PATCH] fixed typo --- js/app.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/js/app.js b/js/app.js index aab60f1..a94802b 100644 --- a/js/app.js +++ b/js/app.js @@ -1,6 +1,7 @@ +// Main entry point to the app function main() { const ws = new WebSocket(`ws://localhost:${CONFIG.remoteAppPort}`); - const paylaod = { + const payload = { type: "auth", payload: { identifier: "de.tealfire.obs", @@ -19,7 +20,7 @@ function main() { ws.onopen = (event) => { // Send payload to TS5 client - ws.send(JSON.stringify(paylaod)); + ws.send(JSON.stringify(payload)); }; ws.onmessage = (event) => {