mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-11-20 14:45:38 +08:00
Prettified Code!
This commit is contained in:
1 parent
73fedc7593
commit
3e0654b435
10 files changed
+53
-52
No files matched your search
@@ -41,7 +41,7 @@ export default function WebRtcWindow() {
|
||||
// connect video
|
||||
pc.addEventListener('track', (evt) => {
|
||||
dispatch({
|
||||
type: "write",
|
||||
type: 'write',
|
||||
path: 'webrtcState/isConnected',
|
||||
data: true,
|
||||
});
|
||||
@@ -55,13 +55,13 @@ export default function WebRtcWindow() {
|
||||
pc.oniceconnectionstatechange = () => {
|
||||
if (pc.iceConnectionState === 'connected') {
|
||||
dispatch({
|
||||
type: "write",
|
||||
type: 'write',
|
||||
path: 'webrtcState/isConnected',
|
||||
data: true,
|
||||
});
|
||||
} else if (pc.iceConnectionState === 'disconnected') {
|
||||
dispatch({
|
||||
type: "write",
|
||||
type: 'write',
|
||||
path: 'webrtcState/isConnected',
|
||||
data: false,
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user