forked from extern/easydiffusion
Better human formatted JSON
This commit is contained in:
parent
268d7495cc
commit
93b3419737
@ -369,7 +369,7 @@ function checkWriteToClipboardPermission (result) {
|
|||||||
copyIcon.innerHTML = `<span class="simple-tooltip right">Copy Image Settings</span>`
|
copyIcon.innerHTML = `<span class="simple-tooltip right">Copy Image Settings</span>`
|
||||||
copyIcon.addEventListener('click', (event) => {
|
copyIcon.addEventListener('click', (event) => {
|
||||||
event.stopPropagation()
|
event.stopPropagation()
|
||||||
navigator.clipboard.writeText(JSON.stringify(readUI()))
|
navigator.clipboard.writeText(JSON.stringify(readUI(), undefined, 4))
|
||||||
})
|
})
|
||||||
resetSettings.parentNode.insertBefore(copyIcon, resetSettings)
|
resetSettings.parentNode.insertBefore(copyIcon, resetSettings)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user