From a4f3645eb75a74b3dbd2f499d8094be9559adfb2 Mon Sep 17 00:00:00 2001 From: Dirk Engling Date: Mon, 6 Jan 2025 02:43:01 +0000 Subject: Cleanup --- static/fullnarp.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'static/fullnarp.js') diff --git a/static/fullnarp.js b/static/fullnarp.js index a6cef96..c4e24f4 100644 --- a/static/fullnarp.js +++ b/static/fullnarp.js @@ -395,7 +395,8 @@ function signalFullnarpConnect(state) { function getFullnarpData() { signalFullnarpConnect('fullnarp-connecting'); - ws = new WebSocket('wss://content.events.ccc.de/fullnarp/ws/'); + connect = window.location.href.replace('http', 'ws') + '/ws/'; + ws = new WebSocket(connect); ws.onopen = () => { console.log('Connected to WebSocket server'); -- cgit v1.2.3