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 7ec3884 commit 641226fCopy full SHA for 641226f
frontend/src/lib/hooks/useDataSaver.ts
@@ -7,7 +7,9 @@ const useDataSaver = (
7
const copyToClipboard = () => {
8
if (navigator.clipboard) {
9
const str =
10
- typeof data === 'string' ? String(data) : JSON.stringify(data);
+ typeof data === 'string'
11
+ ? String(data)
12
+ : JSON.stringify(data, null, '\t');
13
navigator.clipboard.writeText(str);
14
showSuccessAlert({
15
id: subject,
0 commit comments