Skip to content

Commit

Permalink
feat: add common version mange
Browse files Browse the repository at this point in the history
  • Loading branch information
cubxxw committed Dec 24, 2024
1 parent ff764d6 commit 829641f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cmd/voiceflow/web/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@
<!-- 配置 WebSocket URL -->
<script>
const port = window.VOICEFLOW_SERVER_PORT || '18080';
const WEBSOCKET_URL = `ws://localhost:${port}/ws`;
const WEBSOCKET_URL = window.location.protocol === 'https:'
? `wss://${window.location.hostname}/ws`
: `ws://${window.location.hostname}/ws`;
</script>
</head>
<body>
Expand Down

0 comments on commit 829641f

Please sign in to comment.