浏览代码

feat(external_api): allow clipboard-write

master
Hristo Terezov 4 年前
父节点
当前提交
b1a3c5cd7b

+ 1
- 1
modules/API/external/external_api.js 查看文件

320
         const frameName = `jitsiConferenceFrame${id}`;
320
         const frameName = `jitsiConferenceFrame${id}`;
321
 
321
 
322
         this._frame = document.createElement('iframe');
322
         this._frame = document.createElement('iframe');
323
-        this._frame.allow = 'camera; microphone; display-capture; autoplay;';
323
+        this._frame.allow = 'camera; microphone; display-capture; autoplay; clipboard-write';
324
         this._frame.src = this._url;
324
         this._frame.src = this._url;
325
         this._frame.name = frameName;
325
         this._frame.name = frameName;
326
         this._frame.id = frameName;
326
         this._frame.id = frameName;

+ 4
- 0
react/features/base/premeeting/components/web/CopyMeetingUrl.js 查看文件

7
 import { Icon, IconCopy, IconCheck } from '../../../icons';
7
 import { Icon, IconCopy, IconCheck } from '../../../icons';
8
 import { connect } from '../../../redux';
8
 import { connect } from '../../../redux';
9
 import { copyText, getDecodedURI } from '../../../util';
9
 import { copyText, getDecodedURI } from '../../../util';
10
+import logger from '../../logger';
10
 
11
 
11
 type Props = {
12
 type Props = {
12
 
13
 
156
             .then(() => {
157
             .then(() => {
157
                 this._showLinkCopied();
158
                 this._showLinkCopied();
158
                 window.setTimeout(this._hideLinkCopied, COPY_TIMEOUT);
159
                 window.setTimeout(this._hideLinkCopied, COPY_TIMEOUT);
160
+            })
161
+            .catch(e => {
162
+                logger.error(e);
159
             });
163
             });
160
     }
164
     }
161
 
165
 

正在加载...
取消
保存