mirror of
https://github.com/siteboon/claudecodeui.git
synced 2026-01-29 12:57:31 +00:00
Compare commits
2 Commits
v1.15.0
...
viper151-p
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
3ceb260115 | ||
|
|
f4c0fe9e04 |
@@ -29,7 +29,7 @@ export function useWebSocket() {
|
|||||||
if (isPlatform) {
|
if (isPlatform) {
|
||||||
// Platform mode: Use same domain as the page (goes through proxy)
|
// Platform mode: Use same domain as the page (goes through proxy)
|
||||||
const protocol = window.location.protocol === 'https:' ? 'wss:' : 'ws:';
|
const protocol = window.location.protocol === 'https:' ? 'wss:' : 'ws:';
|
||||||
wsUrl = `${protocol}//${window.location.host}/ws`;
|
wsUrl = `/ws`;
|
||||||
} else {
|
} else {
|
||||||
// OSS mode: Connect to same host:port that served the page
|
// OSS mode: Connect to same host:port that served the page
|
||||||
const token = localStorage.getItem('auth-token');
|
const token = localStorage.getItem('auth-token');
|
||||||
|
|||||||
Reference in New Issue
Block a user