This commit is contained in:
Ritesh Kumar committed 2017-08-18 02:36:39 +05:30
1 parent f289b2a4cc
commit e48d3dca90
1 file changed
+3 -1
+3 -1
View File
@@ -137,7 +137,9 @@ export default class ConversionPanel extends PureComponent {
};
copyCode = () => {
copy(this.state.resultValue);
const { rightMode } = this.props
const { resultValue } = this.state
copy(rightMode !== "rust" ? window.js_beautify(resultValue, { e4x: true }) : resultValue);
this.setState({
info: "Code copied to clipboard.",
infoType: "success"