diff --git a/web/javascript/watcher_mixlab.js b/web/javascript/watcher_mixlab.js index 6ad1350..d1c7544 100644 --- a/web/javascript/watcher_mixlab.js +++ b/web/javascript/watcher_mixlab.js @@ -35,9 +35,9 @@ function get_position_style (ctx, widget_width, y, node_height) { transformOrigin: '0 0', transform: transform, left: - document.querySelector('.comfy-menu').style.display === 'none' - ? `60px` - : `0`, + document.querySelector('.comfy-menu').style.display === 'none' + ? `60px` + : `0`, top: `0`, cursor: 'pointer', position: 'absolute', @@ -128,7 +128,7 @@ app.registerExtension({ window._mixlab_file_path_watcher = json.event_type // widget.card.innerText = window._mixlab_file_path_watcher || '' //运行 - // document.querySelector('#queue-button').click() + if (app) app.queuePrompt() } }) }, 1000)