Compare commits

...

2 Commits

Author SHA1 Message Date
viper151
3ceb260115 Merge branch 'main' into viper151-patch-websockets 2026-01-26 13:36:26 +01:00
viper151
f4c0fe9e04 Simplify WebSocket URL for platform mode 2026-01-26 12:33:50 +01:00

View File

@@ -29,7 +29,7 @@ export function useWebSocket() {
if (isPlatform) {
// Platform mode: Use same domain as the page (goes through proxy)
const protocol = window.location.protocol === 'https:' ? 'wss:' : 'ws:';
wsUrl = `${protocol}//${window.location.host}/ws`;
wsUrl = `/ws`;
} else {
// OSS mode: Connect to same host:port that served the page
const token = localStorage.getItem('auth-token');