File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,6 @@ import List from '@material-ui/core/List';
1414import Divider from '@material-ui/core/Divider' ;
1515import Dialog from '@material-ui/core/Dialog' ;
1616import Typography from '@material-ui/core/Typography' ;
17- import CloseIcon from '@material-ui/icons/Close' ;
1817import Slide from '@material-ui/core/Slide' ;
1918import VideoCamIcon from '@material-ui/icons/Videocam' ;
2019import CallIcon from '@material-ui/icons/Call' ;
@@ -77,7 +76,8 @@ class App extends Component {
7776 }
7877
7978 componentDidMount = ( ) => {
80- this . signaling = new Signaling ( 'wss://localhost:4443' , "WebApp" ) ;
79+ var url = 'wss://' + window . location . hostname + ':4443' ;
80+ this . signaling = new Signaling ( url , "WebApp" ) ;
8181 this . signaling . on ( 'peers' , ( peers , self ) => {
8282 this . setState ( { peers, self_id : self } ) ;
8383 } ) ;
You can’t perform that action at this time.
0 commit comments