mirror of
https://github.com/basicswap/basicswap.git
synced 2025-11-05 18:38:09 +01:00
Set default fallback wsport + small fix.
This commit is contained in:
@@ -282,7 +282,7 @@ const WebSocketManager = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (!wsPort) {
|
if (!wsPort) {
|
||||||
wsPort = window.ws_port || '11701';
|
wsPort = window.ws_port || '11700';
|
||||||
}
|
}
|
||||||
|
|
||||||
console.log("Using WebSocket port:", wsPort);
|
console.log("Using WebSocket port:", wsPort);
|
||||||
|
|||||||
@@ -370,7 +370,7 @@ const WebSocketManager = {
|
|||||||
wsPort = window.config.port;
|
wsPort = window.config.port;
|
||||||
}
|
}
|
||||||
if (!wsPort) {
|
if (!wsPort) {
|
||||||
wsPort = window.ws_port || '11701';
|
wsPort = window.ws_port || '11700';
|
||||||
}
|
}
|
||||||
console.log("Using WebSocket port:", wsPort);
|
console.log("Using WebSocket port:", wsPort);
|
||||||
this.ws = new WebSocket(`ws://${window.location.hostname}:${wsPort}`);
|
this.ws = new WebSocket(`ws://${window.location.hostname}:${wsPort}`);
|
||||||
|
|||||||
@@ -269,7 +269,7 @@ const WebSocketManager = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (!wsPort) {
|
if (!wsPort) {
|
||||||
wsPort = window.ws_port || '11701';
|
wsPort = window.ws_port || '11700';
|
||||||
}
|
}
|
||||||
|
|
||||||
console.log("Using WebSocket port:", wsPort);
|
console.log("Using WebSocket port:", wsPort);
|
||||||
|
|||||||
@@ -120,6 +120,23 @@
|
|||||||
updateShutdownButtons();
|
updateShutdownButtons();
|
||||||
});
|
});
|
||||||
</script>
|
</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>
|
</head>
|
||||||
|
|
||||||
<body class="dark:bg-gray-700">
|
<body class="dark:bg-gray-700">
|
||||||
|
|||||||
@@ -8,22 +8,6 @@
|
|||||||
};
|
};
|
||||||
</script>
|
</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">
|
<section class="py-3 px-4 mt-6">
|
||||||
<div class="lg:container mx-auto">
|
<div class="lg:container mx-auto">
|
||||||
<div class="relative py-8 px-8 bg-coolGray-900 dark:bg-gray-500 rounded-md overflow-hidden">
|
<div class="relative py-8 px-8 bg-coolGray-900 dark:bg-gray-500 rounded-md overflow-hidden">
|
||||||
|
|||||||
Reference in New Issue
Block a user