forked from extern/easydiffusion
Don't register listeners for an autosave setting, if they've already been registered
This commit is contained in:
parent
cc31110bcf
commit
4348333497
@ -56,6 +56,9 @@ async function initSettings() {
|
||||
if (!element) {
|
||||
console.error(`Missing settings element ${id}`)
|
||||
}
|
||||
if (id in SETTINGS) { // don't create it again
|
||||
return
|
||||
}
|
||||
SETTINGS[id] = {
|
||||
key: id,
|
||||
element: element,
|
||||
|
Loading…
Reference in New Issue
Block a user