Naming...

This commit is contained in:
Marc-Andre Ferland 2022-10-31 01:13:04 -04:00
parent ce16e61e63
commit 268d7495cc

View File

@ -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)
}