|
|
|
@ -330,8 +330,6 @@ class Conference extends Component<Props, State> { |
|
|
|
|
* @returns {void} |
|
|
|
|
*/ |
|
|
|
|
_onVideoConferenceJoined(conferenceInfo: Object) { |
|
|
|
|
setupDragAreas(this._api.getIFrame()); |
|
|
|
|
|
|
|
|
|
this._setAvatarURL(this.props._avatarURL); |
|
|
|
|
this._setEmail(this.props._email); |
|
|
|
|
this._setName(this.props._name); |
|
|
|
@ -376,25 +374,6 @@ class Conference extends Component<Props, State> { |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* Inject some style into the iframe so everything except the filmstrip, chat, |
|
|
|
|
* buttons or any input is draggable. |
|
|
|
|
* |
|
|
|
|
* @param {Object} iframe - Reference to the iframe where the drag areas will |
|
|
|
|
* be set. |
|
|
|
|
* @returns {void} |
|
|
|
|
*/ |
|
|
|
|
function setupDragAreas(iframe) { |
|
|
|
|
const injectStyle = document.createElement('style'); |
|
|
|
|
|
|
|
|
|
injectStyle.type = 'text/css'; |
|
|
|
|
injectStyle.textContent |
|
|
|
|
= 'body { -webkit-app-region: drag; }' |
|
|
|
|
+ 'button, input { -webkit-app-region: no-drag }' |
|
|
|
|
+ '#chatconversation, .filmstrip { -webkit-app-region: no-drag; }'; |
|
|
|
|
iframe.contentDocument.head.appendChild(injectStyle); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* Maps (parts of) the redux state to the React props. |
|
|
|
|
* |
|
|
|
|