feat: destructure url and user id

This commit is contained in:
Rohit
2025-03-12 23:26:13 +05:30
parent 30e67c78ca
commit 2a5f4e85d9

View File

@@ -51,10 +51,10 @@ const BrowserNavBar: FC<NavBarProps> = ({
socket?.emit('input:url', address);
}, [socket]);
const handleCurrentUrlChange = useCallback((url: string) => {
handleUrlChanged(url);
setRecordingUrl(url);
window.sessionStorage.setItem('recordingUrl', url);
const handleCurrentUrlChange = useCallback((data: { url: string, userId: string }) => {
handleUrlChanged(data.url);
setRecordingUrl(data.url);
window.sessionStorage.setItem('recordingUrl', data.url);
}, [handleUrlChanged, recordingUrl]);
useEffect(() => {