Merge branch 'develop' into release/1.13.0
This commit is contained in:
commit
4173e690c0
@ -165,9 +165,9 @@ function registerEvents(store) {
|
||||
|
||||
function setInvite(code) {
|
||||
if (!code) return store.dispatch(actions.setInvite(null));
|
||||
|
||||
navigator.clipboard.writeText(code).then(() => {
|
||||
notify(`your invite code ${code} was copied to the clipboard.`);
|
||||
const link = `${document.location.origin}#join=${code}`;
|
||||
navigator.clipboard.writeText(link).then(() => {
|
||||
notify('Your invite code was copied to the clipboard.');
|
||||
}, () => {});
|
||||
|
||||
return store.dispatch(actions.setInvite(code));
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user