mirror of
https://github.com/vladmandic/automatic
synced 2026-08-31 17:41:06 +02:00
fix extensions reset
This commit is contained in:
@@ -4,10 +4,10 @@ async function createSplash() {
|
||||
const splash = `
|
||||
<div id="splash" class="splash" style="background: ${dark ? 'black' : 'white'}">
|
||||
<div class="loading"><div class="loader"></div></div>
|
||||
<div class="splash-img" alt="logo" style="background-image: url(file=html/logo-bg-${dark ? 'dark' : 'light'}.jpg), url(file=html/logo-bg-${num}.jpg); background-blend-mode: ${dark ? 'color-burn' : 'color-dodge'}"></div>
|
||||
<div class="splash-img" alt="logo" style="background-image: url(file=html/logo-bg-${dark ? 'dark' : 'light'}.jpg), url(file=html/logo-bg-${num}.jpg); background-blend-mode: ${dark ? 'darken' : 'lighten'}"></div>
|
||||
</div>`;
|
||||
document.body.insertAdjacentHTML('beforeend', splash);
|
||||
console.log('createSplash', dark);
|
||||
console.log('createSplash', { 'system-theme': dark ? 'dark' : 'light' });
|
||||
}
|
||||
|
||||
async function removeSplash() { // called at the end of setHints
|
||||
|
||||
@@ -13,6 +13,8 @@ function getUICurrentTabContent() {
|
||||
return gradioApp().querySelector('.tabitem[id^=tab_]:not([style*="display: none"])');
|
||||
}
|
||||
|
||||
const get_uiCurrentTabContent = getUICurrentTabContent;
|
||||
const get_uiCurrentTab = getUICurrentTab;
|
||||
const uiAfterUpdateCallbacks = [];
|
||||
const uiUpdateCallbacks = [];
|
||||
const uiLoadedCallbacks = [];
|
||||
|
||||
Reference in New Issue
Block a user