mirror of
https://github.com/basicswap/basicswap.git
synced 2025-04-06 14:27:30 +00:00
Set default fallback wsport + small fix.
This commit is contained in:
parent
3489ebe908
commit
30270d87f1
5 changed files with 20 additions and 19 deletions
basicswap
|
@ -282,7 +282,7 @@ const WebSocketManager = {
|
|||
}
|
||||
|
||||
if (!wsPort) {
|
||||
wsPort = window.ws_port || '11701';
|
||||
wsPort = window.ws_port || '11700';
|
||||
}
|
||||
|
||||
console.log("Using WebSocket port:", wsPort);
|
||||
|
|
|
@ -370,7 +370,7 @@ const WebSocketManager = {
|
|||
wsPort = window.config.port;
|
||||
}
|
||||
if (!wsPort) {
|
||||
wsPort = window.ws_port || '11701';
|
||||
wsPort = window.ws_port || '11700';
|
||||
}
|
||||
console.log("Using WebSocket port:", wsPort);
|
||||
this.ws = new WebSocket(`ws://${window.location.hostname}:${wsPort}`);
|
||||
|
|
|
@ -269,7 +269,7 @@ const WebSocketManager = {
|
|||
}
|
||||
|
||||
if (!wsPort) {
|
||||
wsPort = window.ws_port || '11701';
|
||||
wsPort = window.ws_port || '11700';
|
||||
}
|
||||
|
||||
console.log("Using WebSocket port:", wsPort);
|
||||
|
|
|
@ -120,6 +120,23 @@
|
|||
updateShutdownButtons();
|
||||
});
|
||||
</script>
|
||||
|
||||
<script>
|
||||
function getAPIKeys() {
|
||||
return {
|
||||
cryptoCompare: "{{ chart_api_key|safe }}",
|
||||
coinGecko: "{{ coingecko_api_key|safe }}"
|
||||
};
|
||||
}
|
||||
|
||||
function getWebSocketConfig() {
|
||||
return {
|
||||
port: "{{ ws_port|safe }}",
|
||||
fallbackPort: "11700"
|
||||
};
|
||||
}
|
||||
</script>
|
||||
|
||||
</head>
|
||||
|
||||
<body class="dark:bg-gray-700">
|
||||
|
|
|
@ -8,22 +8,6 @@
|
|||
};
|
||||
</script>
|
||||
|
||||
<script>
|
||||
function getAPIKeys() {
|
||||
return {
|
||||
cryptoCompare: "{{ chart_api_key|safe }}",
|
||||
coinGecko: "{{ coingecko_api_key|safe }}"
|
||||
};
|
||||
}
|
||||
|
||||
function getWebSocketConfig() {
|
||||
return {
|
||||
port: "{{ ws_port|safe }}",
|
||||
fallbackPort: "11700"
|
||||
};
|
||||
}
|
||||
</script>
|
||||
|
||||
<section class="py-3 px-4 mt-6">
|
||||
<div class="lg:container mx-auto">
|
||||
<div class="relative py-8 px-8 bg-coolGray-900 dark:bg-gray-500 rounded-md overflow-hidden">
|
||||
|
|
Loading…
Reference in a new issue