Skip to content

Commit 2b48bb0

Browse files
committed
Update.
1 parent 4b23002 commit 2b48bb0

File tree

4 files changed

+6
-8
lines changed

4 files changed

+6
-8
lines changed

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727
"dependencies": {
2828
"@material-ui/core": "^1.3.1",
2929
"@material-ui/icons": "^1.1.0",
30-
"babel-runtime": "^6.26.0",
3130
"bowser": "^1.9.4",
3231
"express": "^4.11.2",
3332
"open": "0.0.5",
@@ -40,10 +39,12 @@
4039
"babel-core": "^6.26.3",
4140
"babel-loader": "^7.1.4",
4241
"babel-polyfill": "^6.26.0",
42+
"babel-preset-env": "^1.7.0",
4343
"babel-preset-es2015": "^6.24.1",
4444
"babel-preset-react": "^6.24.1",
4545
"babel-preset-stage-0": "^6.24.1",
4646
"babel-register": "^6.26.0",
47+
"babel-runtime": "^6.26.0",
4748
"css-loader": "^0.28.11",
4849
"extract-text-webpack-plugin": "^4.0.0-beta.0",
4950
"html-webpack-plugin": "^3.2.0",

src/App.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -225,8 +225,6 @@ class App extends Component {
225225
this.state.localStream != null ? <LocalVideoView stream={this.state.localStream} muted={this.state.video_muted} id={'localview'} /> : null
226226
}
227227
</div>
228-
229-
230228
<div className={css.btnTools}>
231229
<Button variant="fab" mini color="primary" aria-label="add" style={styles.btnTool} onClick={this.onVideoOnClickHandler}>
232230
{
@@ -249,7 +247,6 @@ class App extends Component {
249247
</MuiThemeProvider>
250248
);
251249
}
252-
253250
}
254251

255252
App.propTypes = {

src/LocalVideoView.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,6 @@ export default class LocalVideoView extends Component {
6262
}
6363

6464
LocalVideoView.propTypes = {
65-
stream: PropTypes.any.isRequired,//用户id
66-
id: PropTypes.string,//用户名
65+
stream: PropTypes.any.isRequired,
66+
id: PropTypes.string,
6767
}

src/RemoteVideoView.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,6 @@ export default class RemoteVideoView extends Component {
6969
}
7070

7171
RemoteVideoView.propTypes = {
72-
stream: PropTypes.any.isRequired,//用户id
73-
id: PropTypes.string.isRequired,//会话
72+
stream: PropTypes.any.isRequired,
73+
id: PropTypes.string.isRequired,
7474
}

0 commit comments

Comments
 (0)