Skip to content

Commit b3a8308

Browse files
author
Avaer Kazmer
committed
Beautify HTML for site clipboard copy
1 parent 0f6afed commit b3a8308

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

app.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
<!-- <script src="sprite3d.js"></script> -->
1818
<script src="skin.js"></script>
1919
<script src="parse5.js"></script>
20+
<script src="html-beautify.js"></script>
2021
<script src="file-type.js"></script>
2122
</head>
2223
<body>
@@ -3598,7 +3599,7 @@
35983599
root.removeChild(root.firstChild);
35993600
}
36003601
} else if (id === 'action-copy-scene') {
3601-
const s = root.outerHTML.replace(/^(<xr-site) id="root"/, '$1');
3602+
const s = html_beautify(root.outerHTML.replace(/^(<xr-site) id="root"/, '$1'));
36023603
console.log('copy', s);
36033604
clipboard.copy(s);
36043605
} else if (id === 'action-paste-scene') {

0 commit comments

Comments
 (0)