mirror of
https://github.com/vladmandic/automatic
synced 2026-09-10 06:48:43 +02:00
reorganize js callbacks and startup sequence
This commit is contained in:
@@ -10,7 +10,7 @@ function uiOpenSubmenus() {
|
||||
return states;
|
||||
}
|
||||
|
||||
function getUIDefaults() {
|
||||
async function getUIDefaults() {
|
||||
const btn = gradioApp().getElementById('ui_defaults_view');
|
||||
if (!btn) return;
|
||||
const intersectionObserver = new IntersectionObserver((entries) => {
|
||||
@@ -19,5 +19,3 @@ function getUIDefaults() {
|
||||
});
|
||||
intersectionObserver.observe(btn); // monitor visibility of tab
|
||||
}
|
||||
|
||||
onUiLoaded(getUIDefaults);
|
||||
|
||||
Reference in New Issue
Block a user