File tree Expand file tree Collapse file tree 3 files changed +7
-6
lines changed Expand file tree Collapse file tree 3 files changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ export default class App extends Component {
26
26
27
27
load ( data ) {
28
28
const options = { headers : data . headers } ;
29
- fetch ( data . url , options ) . then ( ( xhr , content ) => {
29
+ fetch ( data . url , options ) . then ( res => res . text ( ) ) . then ( ( content ) => {
30
30
if ( _ . isObject ( content ) && _ . isArray ( content . files ) ) {
31
31
this . setState ( { content : content . files } ) ;
32
32
} else {
Original file line number Diff line number Diff line change 14
14
< body >
15
15
< div id ='root '>
16
16
</ div >
17
- < script src ="/node_modules/jquery/dist/jquery.js "> </ script >
18
- < script src ="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js "> </ script >
19
- < script src ="/static/bundle.js "> </ script >
17
+ < script src ="/node_modules/jquery/dist/jquery.js "> </ script >
18
+ < script src ="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js "> </ script >
19
+ < script src ="/static/vendor.bundle.js "> </ script >
20
+ < script src ="/static/app.bundle.js "> </ script >
20
21
</ body >
21
22
</ html >
Original file line number Diff line number Diff line change 29
29
"lang-map" : " ^0.4.0" ,
30
30
"lodash" : " ^4.17.4" ,
31
31
"parse-diff" : " ^0.4.0" ,
32
- "prismjs-package" : " ^0.7.26 " ,
32
+ "prismjs-package" : " ^0.7.27 " ,
33
33
"react" : " ^15.4.2" ,
34
34
"react-dom" : " ^15.4.2"
35
35
},
36
36
"devDependencies" : {
37
37
"jquery" : " ^3.1.1" ,
38
38
"react-bootstrap" : " ^0.30.7" ,
39
- "react-devpack" : " ^0.2.16 "
39
+ "react-devpack" : " ^0.3.2 "
40
40
}
41
41
}
You can’t perform that action at this time.
0 commit comments