feat(external_api): allow clipboard-write

This commit is contained in:
Hristo Terezov 2021-02-26 13:17:01 -06:00 committed by Дамян Минков
parent 9573a615b1
commit b1a3c5cd7b
2 changed files with 5 additions and 1 deletions

View File

@ -320,7 +320,7 @@ export default class JitsiMeetExternalAPI extends EventEmitter {
const frameName = `jitsiConferenceFrame${id}`;
this._frame = document.createElement('iframe');
this._frame.allow = 'camera; microphone; display-capture; autoplay;';
this._frame.allow = 'camera; microphone; display-capture; autoplay; clipboard-write';
this._frame.src = this._url;
this._frame.name = frameName;
this._frame.id = frameName;

View File

@ -7,6 +7,7 @@ import { translate } from '../../../i18n';
import { Icon, IconCopy, IconCheck } from '../../../icons';
import { connect } from '../../../redux';
import { copyText, getDecodedURI } from '../../../util';
import logger from '../../logger';
type Props = {
@ -156,6 +157,9 @@ class CopyMeetingUrl extends Component<Props, State> {
.then(() => {
this._showLinkCopied();
window.setTimeout(this._hideLinkCopied, COPY_TIMEOUT);
})
.catch(e => {
logger.error(e);
});
}