Remove default argument syntax on getVersionedGithubPath()
Summary: Removes ES6 syntax of default arguments to fix website building as per #7434. [More info](https://github.com/facebook/react-native/pull/7434). Closes https://github.com/facebook/react-native/pull/7439 Differential Revision: D3274206 fb-gh-sync-id: 3a8f5950ead91cf59c27fd384e97bf9587005398 fbshipit-source-id: 3a8f5950ead91cf59c27fd384e97bf9587005398
This commit is contained in:
parent
1d101f4236
commit
0fab691e6f
|
@ -12,12 +12,13 @@
|
|||
var H = require('Header');
|
||||
var React = require('React');
|
||||
|
||||
function getVersionedGithubPath(path, version='next') {
|
||||
function getVersionedGithubPath(path, version) {
|
||||
version = version || 'next';
|
||||
return [
|
||||
'https://github.com/facebook/react-native/blob',
|
||||
version === 'next' ? 'master' : version + '-stable',
|
||||
path
|
||||
].join('/')
|
||||
].join('/');
|
||||
}
|
||||
|
||||
var HeaderWithGithub = React.createClass({
|
||||
|
|
Loading…
Reference in New Issue