mirror of
https://github.com/vladmandic/automatic
synced 2026-09-19 01:04:32 +02:00
handle startup errors
Signed-off-by: Vladimir Mandic <mandic00@live.com>
This commit is contained in:
@@ -181,6 +181,10 @@ async function initSettings() {
|
||||
if (settingsInitialized) return;
|
||||
settingsInitialized = true;
|
||||
const tabNavElements = gradioApp().querySelector('#settings > .tab-nav');
|
||||
if (!tabNavElements) {
|
||||
error('initSettings', 'No tab nav elements found');
|
||||
return;
|
||||
}
|
||||
const tabNavButtons = gradioApp().querySelectorAll('#settings > .tab-nav > button');
|
||||
const tabElements = gradioApp().querySelectorAll('#settings > div:not(.tab-nav)');
|
||||
const observer = new MutationObserver((mutations) => {
|
||||
|
||||
Reference in New Issue
Block a user