mirror of
https://github.com/Redocly/redoc.git
synced 2025-01-31 10:04:08 +03:00
parent
9ccfd52640
commit
e99d66d9dd
|
@ -27,7 +27,7 @@ export class CopyButton implements OnInit {
|
|||
onClick() {
|
||||
let copied;
|
||||
if (this.copyText) {
|
||||
copied = Clipboard.copyCustom(JSON.stringify(this.copyText));
|
||||
copied = Clipboard.copyCustom(JSON.stringify(this.copyText, null, 2));
|
||||
} else {
|
||||
copied = Clipboard.copyElement(this.copyElement);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user