Bläddra i källkod

feat(external_api): allow clipboard-write

master
Hristo Terezov 4 år sedan
förälder
incheckning
b1a3c5cd7b

+ 1
- 1
modules/API/external/external_api.js Visa fil

@@ -320,7 +320,7 @@ export default class JitsiMeetExternalAPI extends EventEmitter {
320 320
         const frameName = `jitsiConferenceFrame${id}`;
321 321
 
322 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 324
         this._frame.src = this._url;
325 325
         this._frame.name = frameName;
326 326
         this._frame.id = frameName;

+ 4
- 0
react/features/base/premeeting/components/web/CopyMeetingUrl.js Visa fil

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

Laddar…
Avbryt
Spara