From 6dc21f859e2443a80e7b46a5ed890a198af38ef9 Mon Sep 17 00:00:00 2001 From: yum Date: Fri, 12 Jul 2024 16:20:40 -0700 Subject: Replace hardcoded localhost with js magic Use some js magic to deduce the hostname instead of hardcoding localhost. If you used the browser source under 127.0.0.1, then you'd get XSS blocked from making the ajax calls. This fixes that. --- BrowserSource/index.html | 46 ++++++++++++++++++++++++---------------------- 1 file changed, 24 insertions(+), 22 deletions(-) (limited to 'BrowserSource') diff --git a/BrowserSource/index.html b/BrowserSource/index.html index d677eb6..573fdcc 100644 --- a/BrowserSource/index.html +++ b/BrowserSource/index.html @@ -60,22 +60,24 @@
- + setInterval(getTranscript, /*interval_ms=*/100); + -- cgit v1.2.3