mirror of
https://github.com/ritz078/transform.git
synced 2026-11-21 00:32:56 +03:00
fixes
This commit is contained in:
1 parent
f289b2a4cc
commit
e48d3dca90
1 file changed
+3
-1
@@ -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"
|
||||
|
||||
Reference in new issue
Block a user