feat(external_api): allow clipboard-write

pull/8696/head jitsi-meet_5560
Hristo Terezov 4 years ago committed by Дамян Минков
parent 9573a615b1
commit b1a3c5cd7b
  1. 2
      modules/API/external/external_api.js
  2. 4
      react/features/base/premeeting/components/web/CopyMeetingUrl.js

@ -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;

@ -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);
});
}

Loading…
Cancel
Save