mirror of
https://github.com/streamwall/streamwall.git
synced 2026-01-31 09:22: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(
|
const handleClickId = useCallback(
|
||||||
(streamId) => {
|
(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) {
|
if (focusedInputIdx !== undefined) {
|
||||||
handleSetView(focusedInputIdx, streamId)
|
handleSetView(focusedInputIdx, streamId)
|
||||||
|
|||||||
Reference in New Issue
Block a user