Use onUiLoaded for tooltips
parent
fcd96ba9fc
commit
0a09d2f3d3
|
|
@ -7,7 +7,7 @@ const qrcode_tooltips = {
|
|||
"#qrcode_error_correction label:nth-of-type(4)": "High: 30% correctable",
|
||||
}
|
||||
|
||||
onUiUpdate(function(){
|
||||
onUiLoaded(function(){
|
||||
for (let [key, value] of Object.entries(qrcode_tooltips)) {
|
||||
e = gradioApp().querySelector(key)
|
||||
if (e) gradioApp().querySelector(key).title = value;
|
||||
|
|
|
|||
Loading…
Reference in New Issue