mirror of
https://github.com/kerberos-io/agent.git
synced 2026-08-23 15:08:32 +00:00
Add trailing commas to fallback calls
Add trailing commas to the arguments passed to fallbackToSDLiveview in ui/src/pages/Dashboard/Dashboard.jsx. This is a non-functional formatting change applied to the WebRTC initialization, ICE candidate handling, and connection-state fallback calls to align with the project's code style/formatter.
This commit is contained in:
@@ -339,7 +339,7 @@ class Dashboard extends React.Component {
|
|||||||
});
|
});
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
this.fallbackToSDLiveview(
|
this.fallbackToSDLiveview(
|
||||||
`Unable to initialise WebRTC liveview: ${error.message}`
|
`Unable to initialise WebRTC liveview: ${error.message}`,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -359,7 +359,7 @@ class Dashboard extends React.Component {
|
|||||||
await this.webrtcPeerConnection.addIceCandidate(candidateInit);
|
await this.webrtcPeerConnection.addIceCandidate(candidateInit);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
this.fallbackToSDLiveview(
|
this.fallbackToSDLiveview(
|
||||||
`Unable to add remote ICE candidate: ${error.message}`
|
`Unable to add remote ICE candidate: ${error.message}`,
|
||||||
);
|
);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@@ -421,7 +421,7 @@ class Dashboard extends React.Component {
|
|||||||
connectionState === 'closed'
|
connectionState === 'closed'
|
||||||
) {
|
) {
|
||||||
this.fallbackToSDLiveview(
|
this.fallbackToSDLiveview(
|
||||||
`WebRTC connection ${connectionState}, falling back to SD liveview.`
|
`WebRTC connection ${connectionState}, falling back to SD liveview.`,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user