diff --git a/client/src/events.jsx b/client/src/events.jsx index 72609eb0..6af704bd 100644 --- a/client/src/events.jsx +++ b/client/src/events.jsx @@ -166,9 +166,12 @@ function registerEvents(store) { function setInvite(code) { if (!code) return store.dispatch(actions.setInvite(null)); const link = `${document.location.origin}#join=${code}`; - navigator.clipboard.writeText(link).then(() => { - notify('Invite link copied to clipboard.'); - }, () => {}); + + if (navigator.clipboard) { + navigator.clipboard.writeText(link).then(() => { + notify('Invite link copied to clipboard.'); + }, () => {}); + } return store.dispatch(actions.setInvite(code)); }