We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 528d6eb commit 41f27eeCopy full SHA for 41f27ee
src/lib/ExportMenu/ExportMenu.svelte
@@ -1,10 +1,14 @@
1
<script>
2
+ import beautify from "js-beautify";
3
import CodePreview from "$lib/CodePreview/CodePreview.svelte";
4
5
export let code
6
7
function copyCode() {
- navigator.clipboard.writeText(code)
8
+ navigator.clipboard.writeText(beautify.js(code, {
9
+ indent_size: 4,
10
+ space_in_empty_paren: true,
11
+ }))
12
}
13
14
function testCode() {
0 commit comments