Этот коммит содержится в:
Christopher Speller
2016-11-24 09:08:46 -05:00
родитель b212acf312 36f62c9e82
Коммит c96ecae6da
15 изменённых файлов: 137 добавлений и 45 удалений

Просмотреть файл

@@ -51,6 +51,7 @@ export default class CodePreview extends React.Component {
async: true,
url: props.fileUrl,
type: 'GET',
dataType: 'text',
error: this.handleReceivedError,
success: this.handleReceivedCode
});
@@ -61,7 +62,11 @@ export default class CodePreview extends React.Component {
if (data.nodeName === '#document') {
code = new XMLSerializer().serializeToString(data);
}
this.setState({code, loading: false, success: true});
this.setState({
code,
loading: false,
success: true
});
}
handleReceivedError() {