Skip to content

Commit 1ae9ed3

Browse files
dabbottFacebook Github Bot 3
authored andcommitted
Update web player in docs for custom registerComponent names
Summary: In the web player in the docs, allows `AppRegistry.registerComponent('name', App)` to use *anything* for `'name'`. It is ignored by the web player - last registration wins. Closes #8383 Differential Revision: D3478922 Pulled By: JoelMarcey fbshipit-source-id: 3d1d96e0ad41216d29134ba384896e86d0cd2b32
1 parent f0c79ba commit 1ae9ed3

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

website/core/WebPlayer.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ var WebPlayer = React.createClass({
4444
},
4545

4646
render: function() {
47-
var hash = `#code=${encodeURIComponent(this.props.children)}&runApp=AwesomeProject`;
47+
var hash = `#code=${encodeURIComponent(this.props.children)}`;
4848

4949
if (this.props.params) {
5050
hash += `&${this.props.params}`;
@@ -57,7 +57,7 @@ var WebPlayer = React.createClass({
5757
style={{marginTop: 4}}
5858
width='880'
5959
height={this.parseParams(this.props.params).platform === 'android' ? '425' : '420'}
60-
data-src={`//cdn.rawgit.com/dabbott/react-native-web-player/v0.1.2/index.html${hash}`}
60+
data-src={`//cdn.rawgit.com/dabbott/react-native-web-player/v0.1.3/index.html${hash}`}
6161
frameBorder='0'
6262
/>
6363
</div>

0 commit comments

Comments
 (0)