Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit bd6b5c4

Browse files
committed
Improve function name.
1 parent 98ac3dd commit bd6b5c4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/components/views/elements/AppTile.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ export default React.createClass({
6363
* @param {Object} newProps The new properties of the component
6464
* @return {Object} Updated component state to be set with setState
6565
*/
66-
_getNewUrlState(newProps) {
66+
_getNewState(newProps) {
6767
const widgetPermissionId = [newProps.room.roomId, encodeURIComponent(newProps.url)].join('_');
6868
const hasPermissionToLoad = localStorage.getItem(widgetPermissionId);
6969
return {
@@ -79,7 +79,7 @@ export default React.createClass({
7979
},
8080

8181
getInitialState() {
82-
return this._getNewUrlState(this.props);
82+
return this._getNewState(this.props);
8383
},
8484

8585
/**
@@ -176,7 +176,7 @@ export default React.createClass({
176176

177177
componentWillReceiveProps(nextProps) {
178178
if (nextProps.url !== this.props.url) {
179-
this._getNewUrlState(nextProps);
179+
this._getNewState(nextProps);
180180
this.setScalarToken();
181181
} else if (nextProps.show && !this.props.show) {
182182
this.setState({

0 commit comments

Comments
 (0)