mirror of
https://github.com/streamwall/streamwall.git
synced 2026-01-25 06:32:49 -05:00
Handle error copying stream id to clipboard
This commit is contained in:
@@ -287,7 +287,11 @@ function App({ wsEndpoint }) {
|
||||
|
||||
const handleClickId = useCallback(
|
||||
(streamId) => {
|
||||
navigator.clipboard.writeText(streamId)
|
||||
try {
|
||||
navigator.clipboard.writeText(streamId)
|
||||
} catch (err) {
|
||||
console.warn('Unable to copy stream id to clipboard:', err)
|
||||
}
|
||||
|
||||
if (focusedInputIdx !== undefined) {
|
||||
handleSetView(focusedInputIdx, streamId)
|
||||
|
||||
Reference in New Issue
Block a user