turning into redoing all of the webrtc reading and publishing client side lol

This commit is contained in:
legop3
2026-10-09 14:19:06 -04:00
parent 28d0b1437d
commit 1284125fff
10 changed files with 92 additions and 188 deletions
+8
View File
@@ -0,0 +1,8 @@
import { useCallback } from 'react';
import { useSessionSelector } from '../context/SessionContext.jsx';
export default function useServerUrl() {
const publicUrl = useSessionSelector((state) => state.session?.interInstances?.profile?.publicUrl);
// The UI may be served by Vite while session data comes from the actual server.
return useCallback((url) => new URL(url, publicUrl || window.location.origin).href, [publicUrl]);
}