feat(external_api): allow clipboard-write
This commit is contained in:
parent
9573a615b1
commit
b1a3c5cd7b
|
@ -320,7 +320,7 @@ export default class JitsiMeetExternalAPI extends EventEmitter {
|
||||||
const frameName = `jitsiConferenceFrame${id}`;
|
const frameName = `jitsiConferenceFrame${id}`;
|
||||||
|
|
||||||
this._frame = document.createElement('iframe');
|
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.src = this._url;
|
||||||
this._frame.name = frameName;
|
this._frame.name = frameName;
|
||||||
this._frame.id = frameName;
|
this._frame.id = frameName;
|
||||||
|
|
|
@ -7,6 +7,7 @@ import { translate } from '../../../i18n';
|
||||||
import { Icon, IconCopy, IconCheck } from '../../../icons';
|
import { Icon, IconCopy, IconCheck } from '../../../icons';
|
||||||
import { connect } from '../../../redux';
|
import { connect } from '../../../redux';
|
||||||
import { copyText, getDecodedURI } from '../../../util';
|
import { copyText, getDecodedURI } from '../../../util';
|
||||||
|
import logger from '../../logger';
|
||||||
|
|
||||||
type Props = {
|
type Props = {
|
||||||
|
|
||||||
|
@ -156,6 +157,9 @@ class CopyMeetingUrl extends Component<Props, State> {
|
||||||
.then(() => {
|
.then(() => {
|
||||||
this._showLinkCopied();
|
this._showLinkCopied();
|
||||||
window.setTimeout(this._hideLinkCopied, COPY_TIMEOUT);
|
window.setTimeout(this._hideLinkCopied, COPY_TIMEOUT);
|
||||||
|
})
|
||||||
|
.catch(e => {
|
||||||
|
logger.error(e);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue