Browse Source

fix(external-api) add policy to support the Compute Pressure API

https://w3c.github.io/compute-pressure/#policy-control
factor2
Saúl Ibarra Corretgé 2 years ago
parent
commit
8b209b3c6e
1 changed files with 10 additions and 1 deletions
  1. 10
    1
      modules/API/external/external_api.js

+ 10
- 1
modules/API/external/external_api.js View File

@@ -403,7 +403,16 @@ export default class JitsiMeetExternalAPI extends EventEmitter {
403 403
         const frameName = `jitsiConferenceFrame${id}`;
404 404
 
405 405
         this._frame = document.createElement('iframe');
406
-        this._frame.allow = 'camera; microphone; display-capture; autoplay; clipboard-write; hid; screen-wake-lock';
406
+        this._frame.allow = [
407
+            'autoplay',
408
+            'camera',
409
+            'clipboard-write',
410
+            'compute-pressure',
411
+            'display-capture',
412
+            'hid',
413
+            'microphone',
414
+            'screen-wake-lock'
415
+        ].join('; ');
407 416
         this._frame.name = frameName;
408 417
         this._frame.id = frameName;
409 418
         this._setSize(height, width);

Loading…
Cancel
Save