fix: websocket prefix
This commit is contained in:
@@ -357,7 +357,7 @@
|
|||||||
})
|
})
|
||||||
const websocketPrefix =
|
const websocketPrefix =
|
||||||
window.location.protocol === 'http:' ? 'ws://' : 'wss://'
|
window.location.protocol === 'http:' ? 'ws://' : 'wss://'
|
||||||
const websocketUrl = `${'http:' ? 'ws://' : 'wss://'}${window.location.host}/api/v1/ws`
|
const websocketUrl = `${websocketPrefix}${window.location.host}/api/v1/ws`
|
||||||
</script>
|
</script>
|
||||||
{% block scripts %}{% endblock %} {% for url in INCLUDED_COMPONENTS %}
|
{% block scripts %}{% endblock %} {% for url in INCLUDED_COMPONENTS %}
|
||||||
<script src="{{ static_url_for('static', url) }}"></script>
|
<script src="{{ static_url_for('static', url) }}"></script>
|
||||||
|
|||||||
Reference in New Issue
Block a user