From c59e2edf8ebd12b821fa366c2c15c2419f9c9ac9 Mon Sep 17 00:00:00 2001 From: dsc Date: Sat, 2 Sep 2023 21:46:31 +0300 Subject: [PATCH] browsers are too strict nowadays --- ircradio/templates/index.html | 2 +- settings.py_example | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/ircradio/templates/index.html b/ircradio/templates/index.html index d805e5f..413e77d 100644 --- a/ircradio/templates/index.html +++ b/ircradio/templates/index.html @@ -88,7 +88,7 @@ var sel_radio_cards = {}; var url_icecast = '{{ settings.icecast2_hostname }}'; var url_album_art = '/assets/art/'; - var ws_url = '{{ url_for('ws', _external=True) }}'; + var ws_url = '{{ settings.ws_url }}'; var icon_play = ` diff --git a/settings.py_example b/settings.py_example index 91face5..9d2afb5 100644 --- a/settings.py_example +++ b/settings.py_example @@ -11,6 +11,7 @@ def bool_env(val): debug = False host = "127.0.0.1" +ws_url = "http://127.0.0.1:2600/ws" port = 2600 timezone = "Europe/Amsterdam"