fixbug: 自动监听文件夹

This commit is contained in:
shadowcz007
2024-08-20 15:06:58 +08:00
parent 0320f13a9f
commit c141ba405f
+4 -4
View File
@@ -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)