Better human formatted JSON

This commit is contained in:
Marc-Andre Ferland 2022-11-01 04:54:38 -04:00
parent 268d7495cc
commit 93b3419737

View File

@ -369,7 +369,7 @@ function checkWriteToClipboardPermission (result) {
copyIcon.innerHTML = `<span class="simple-tooltip right">Copy Image Settings</span>`
copyIcon.addEventListener('click', (event) => {
event.stopPropagation()
navigator.clipboard.writeText(JSON.stringify(readUI()))
navigator.clipboard.writeText(JSON.stringify(readUI(), undefined, 4))
})
resetSettings.parentNode.insertBefore(copyIcon, resetSettings)
}