Added cookie consent and fixed bug in server
parent
f39b315e1c
commit
ed5fc9d8ea
|
|
@ -4,6 +4,7 @@ import ReactTooltip from 'react-tooltip';
|
||||||
import PropTypes from 'prop-types';
|
import PropTypes from 'prop-types';
|
||||||
import classnames from 'classnames';
|
import classnames from 'classnames';
|
||||||
import CopyToClipboard from 'react-copy-to-clipboard';
|
import CopyToClipboard from 'react-copy-to-clipboard';
|
||||||
|
import CookieConsent from 'react-cookie-consent';
|
||||||
import * as appPropTypes from './appPropTypes';
|
import * as appPropTypes from './appPropTypes';
|
||||||
import * as requestActions from '../redux/requestActions';
|
import * as requestActions from '../redux/requestActions';
|
||||||
import * as stateActions from '../redux/stateActions';
|
import * as stateActions from '../redux/stateActions';
|
||||||
|
|
@ -81,7 +82,12 @@ class Room extends React.Component
|
||||||
|
|
||||||
<Appear duration={300}>
|
<Appear duration={300}>
|
||||||
<div data-component='Room'>
|
<div data-component='Room'>
|
||||||
|
<CookieConsent>
|
||||||
|
This website uses cookies to enhance the user experience.
|
||||||
|
</CookieConsent>
|
||||||
|
|
||||||
<FullScreenView advancedMode={room.advancedMode} />
|
<FullScreenView advancedMode={room.advancedMode} />
|
||||||
|
|
||||||
<div className='room-wrapper'>
|
<div className='room-wrapper'>
|
||||||
<AudioPeers />
|
<AudioPeers />
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -23,6 +23,7 @@
|
||||||
"prop-types": "^15.6.2",
|
"prop-types": "^15.6.2",
|
||||||
"random-string": "^0.2.0",
|
"random-string": "^0.2.0",
|
||||||
"react": "^16.5.2",
|
"react": "^16.5.2",
|
||||||
|
"react-cookie-consent": "^1.9.0",
|
||||||
"react-copy-to-clipboard": "^5.0.1",
|
"react-copy-to-clipboard": "^5.0.1",
|
||||||
"react-dom": "^16.5.2",
|
"react-dom": "^16.5.2",
|
||||||
"react-draggable": "^3.0.5",
|
"react-draggable": "^3.0.5",
|
||||||
|
|
|
||||||
|
|
@ -82,7 +82,8 @@ class Room extends EventEmitter
|
||||||
if (this._signalingPeers)
|
if (this._signalingPeers)
|
||||||
for (let peer of this._signalingPeers)
|
for (let peer of this._signalingPeers)
|
||||||
{
|
{
|
||||||
peer.socket.disconnect();
|
if (peer.socket)
|
||||||
|
peer.socket.disconnect();
|
||||||
};
|
};
|
||||||
|
|
||||||
this._signalingPeers.clear();
|
this._signalingPeers.clear();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue