Merge pull request #885 from patriceac/patch-28

Cleaning up event listener that's no longer needed
This commit is contained in:
cmdr2 2023-02-16 19:31:19 +05:30 committed by GitHub
commit 0a099434a3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -334,15 +334,10 @@
linkTabContents(tabSettingsSingle)
linkTabContents(tabSettingsBatch)
/////////////////////// Event Listener
document.addEventListener('tabClick', (e) => {
if (e.detail.name == 'merge') {
console.log('Activate')
let mergeModelAField = new ModelDropdown(document.querySelector('#mergeModelA'), 'stable-diffusion')
let mergeModelBField = new ModelDropdown(document.querySelector('#mergeModelB'), 'stable-diffusion')
updateChart()
}
})
console.log('Activate')
let mergeModelAField = new ModelDropdown(document.querySelector('#mergeModelA'), 'stable-diffusion')
let mergeModelBField = new ModelDropdown(document.querySelector('#mergeModelB'), 'stable-diffusion')
updateChart()
// slider
const singleMergeRatioField = document.querySelector('#single-merge-ratio')