mirror of
https://github.com/easydiffusion/easydiffusion.git
synced 2024-12-23 23:49:11 +01:00
Naming...
This commit is contained in:
parent
ce16e61e63
commit
268d7495cc
@ -208,8 +208,7 @@ function restoreTaskToUI(task) {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function readUIasJSON() {
|
||||
function readUI() {
|
||||
const reqBody = {}
|
||||
for (const key in TASK_MAPPING) {
|
||||
reqBody[key] = TASK_MAPPING[key].readUI()
|
||||
@ -370,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(readUIasJSON()))
|
||||
navigator.clipboard.writeText(JSON.stringify(readUI()))
|
||||
})
|
||||
resetSettings.parentNode.insertBefore(copyIcon, resetSettings)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user