Selaa lähdekoodia

feat(external_api): Return external resources for the always on top.

j8
hristoterezov 8 vuotta sitten
vanhempi
commit
da9e3fb63e
1 muutettua tiedostoa jossa 18 lisäystä ja 0 poistoa
  1. 18
    0
      modules/API/external/external_api.js

+ 18
- 0
modules/API/external/external_api.js Näytä tiedosto

@@ -8,6 +8,10 @@ import {
8 8
 
9 9
 const logger = require('jitsi-meet-logger').getLogger(__filename);
10 10
 
11
+const ALWAYS_ON_TOP_FILENAMES = [
12
+    'css/alwaysontop.css', 'libs/alwaysontop.bundle.min.js'
13
+];
14
+
11 15
 /**
12 16
  * Maps the names of the commands expected by the API with the name of the
13 17
  * commands expected by jitsi-meet
@@ -207,6 +211,9 @@ export default class JitsiMeetExternalAPI extends EventEmitter {
207 211
             noSSL,
208 212
             roomName
209 213
         });
214
+        this._baseUrl = generateURL(domain, {
215
+            noSSL
216
+        });
210 217
         this._createIFrame(height, width);
211 218
         this._transport = new Transport({
212 219
             backend: new PostMessageTransportBackend({
@@ -245,6 +252,17 @@ export default class JitsiMeetExternalAPI extends EventEmitter {
245 252
         this._frame = this._parentNode.appendChild(this._frame);
246 253
     }
247 254
 
255
+    /**
256
+     * Returns arrays with the all resources for the always on top feature.
257
+     *
258
+     * @returns {Array<string>}
259
+     */
260
+    _getAlwaysOnTopResources() {
261
+        return ALWAYS_ON_TOP_FILENAMES.map(
262
+            filename => this._baseUrl + filename
263
+        );
264
+    }
265
+
248 266
     /**
249 267
      * Sets the size of the iframe element.
250 268
      *

Loading…
Peruuta
Tallenna