Skip to content

Commit 8abae09

Browse files
author
cloudwebrtc
committed
Update.
1 parent 0ada41d commit 8abae09

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/App.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ import List from '@material-ui/core/List';
1414
import Divider from '@material-ui/core/Divider';
1515
import Dialog from '@material-ui/core/Dialog';
1616
import Typography from '@material-ui/core/Typography';
17-
import CloseIcon from '@material-ui/icons/Close';
1817
import Slide from '@material-ui/core/Slide';
1918
import VideoCamIcon from '@material-ui/icons/Videocam';
2019
import 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
});

0 commit comments

Comments
 (0)