|
@@ -229,25 +229,17 @@ export default class JitsiMeetExternalAPI extends EventEmitter {
|
229
|
229
|
width = `${Math.max(width, MIN_WIDTH)}px`;
|
230
|
230
|
}
|
231
|
231
|
|
232
|
|
- /* eslint-enable no-param-reassign */
|
233
|
|
-
|
234
|
|
- this._iframeHolder
|
235
|
|
- = this._parentNode.appendChild(document.createElement('div'));
|
236
|
|
- this._iframeHolder.id = `jitsiConference${id}`;
|
237
|
|
- this._iframeHolder.style.width = width;
|
238
|
|
- this._iframeHolder.style.height = height;
|
239
|
|
-
|
240
|
232
|
const frameName = `jitsiConferenceFrame${id}`;
|
241
|
233
|
|
242
|
234
|
this._frame = document.createElement('iframe');
|
243
|
235
|
this._frame.src = this._url;
|
244
|
236
|
this._frame.name = frameName;
|
245
|
237
|
this._frame.id = frameName;
|
246
|
|
- this._frame.width = '100%';
|
247
|
|
- this._frame.height = '100%';
|
|
238
|
+ this._frame.style.width = width;
|
|
239
|
+ this._frame.style.height = height;
|
248
|
240
|
this._frame.setAttribute('allowFullScreen', 'true');
|
249
|
241
|
this._frame.style.border = 0;
|
250
|
|
- this._frame = this._iframeHolder.appendChild(this._frame);
|
|
242
|
+ this._frame = this._parentNode.appendChild(this._frame);
|
251
|
243
|
}
|
252
|
244
|
|
253
|
245
|
/**
|
|
@@ -361,8 +353,8 @@ export default class JitsiMeetExternalAPI extends EventEmitter {
|
361
|
353
|
dispose() {
|
362
|
354
|
this._transport.dispose();
|
363
|
355
|
this.removeAllListeners();
|
364
|
|
- if (this._iframeHolder) {
|
365
|
|
- this._iframeHolder._parentNode.removeChild(this._iframeHolder);
|
|
356
|
+ if (this._frame) {
|
|
357
|
+ this._frame.parentNode.removeChild(this._frame);
|
366
|
358
|
}
|
367
|
359
|
}
|
368
|
360
|
|