mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2025-12-29 13:22:57 -08:00
Fix a whole bunch of implicit globals
This commit is contained in:
parent
34a6ad80d5
commit
8ccc27127b
13 changed files with 60 additions and 62 deletions
|
|
@ -23,7 +23,7 @@ let modalObserver = new MutationObserver(function(mutations) {
|
|||
});
|
||||
|
||||
function attachGalleryListeners(tab_name) {
|
||||
gallery = gradioApp().querySelector('#'+tab_name+'_gallery')
|
||||
var gallery = gradioApp().querySelector('#'+tab_name+'_gallery')
|
||||
gallery?.addEventListener('click', () => gradioApp().getElementById(tab_name+"_generation_info_button").click());
|
||||
gallery?.addEventListener('keydown', (e) => {
|
||||
if (e.keyCode == 37 || e.keyCode == 39) // left or right arrow
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue