mirror of
https://github.com/vladmandic/automatic
synced 2026-09-19 01:04:32 +02:00
js optimizations
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
onUiUpdate(() => {
|
||||
onAfterUiUpdate(() => {
|
||||
gradioApp().querySelectorAll('span, button, select, p').forEach((span) => {
|
||||
tooltip = titles[span.textContent];
|
||||
if (!tooltip) tooltip = titles[span.value];
|
||||
@@ -22,7 +22,7 @@ onUiUpdate(() => {
|
||||
/*
|
||||
// dump elements
|
||||
const elements = [
|
||||
...Array.from(gradioApp().querySelectorAll('button')).map(el => ({id: el.id, text: el.textContent, title: el.title })),
|
||||
...Array.from(gradioApp().querySelectorAll('label > span')).map(el => ({id: el.id, text: el.textContent, title: el.title })),
|
||||
...Array.from(gradioApp().querySelectorAll('button')).map(el => ({id: el.id, text: el.textContent, localized: '', hint: el.title })),
|
||||
...Array.from(gradioApp().querySelectorAll('label > span')).map(el => ({id: el.id, text: el.textContent, localized: '', hint: el.title })),
|
||||
];
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user