mirror of
https://github.com/vladmandic/automatic
synced 2026-09-20 01:31:13 +02:00
js optimizations
This commit is contained in:
@@ -1,5 +1,3 @@
|
||||
/* global gradioApp, onUiUpdate, get_tab_index */
|
||||
|
||||
let currentWidth = null;
|
||||
let currentHeight = null;
|
||||
let arFrameTimeout = setTimeout(() => {}, 0);
|
||||
@@ -52,7 +50,7 @@ function dimensionChange(e, is_width, is_height) {
|
||||
}
|
||||
}
|
||||
|
||||
onUiUpdate(() => {
|
||||
onAfterUiUpdate(() => {
|
||||
const arPreviewRect = gradioApp().querySelector('#imageARPreview');
|
||||
if (arPreviewRect) arPreviewRect.style.display = 'none';
|
||||
const tabImg2img = gradioApp().querySelector('#tab_img2img');
|
||||
|
||||
Reference in New Issue
Block a user