Use onUiLoaded for tooltips

master
missionfloyd 2023-06-23 03:13:22 -06:00
parent fcd96ba9fc
commit 0a09d2f3d3
1 changed files with 1 additions and 1 deletions

View File

@ -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;