mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-09 01:20:09 +00:00
[CodeHealth] Remove remaining uses of global app var (#3868)
This commit is contained in:
@@ -292,10 +292,8 @@ onMounted(async () => {
|
||||
canvasStore.canvas.render_canvas_border = false
|
||||
workspaceStore.spinner = false
|
||||
|
||||
// @ts-expect-error fixme ts strict error
|
||||
window['app'] = comfyApp
|
||||
// @ts-expect-error fixme ts strict error
|
||||
window['graph'] = comfyApp.graph
|
||||
window.app = comfyApp
|
||||
window.graph = comfyApp.graph
|
||||
|
||||
comfyAppReady.value = true
|
||||
|
||||
|
||||
@@ -79,7 +79,7 @@ watch(
|
||||
if (draggingItems === false) {
|
||||
setTimeout(() => {
|
||||
visible.value = true
|
||||
positionSelectionOverlay(canvasStore.canvas as LGraphCanvas)
|
||||
positionSelectionOverlay(canvasStore.getCanvas())
|
||||
}, 100)
|
||||
} else {
|
||||
// Selection change update to visible state is delayed by a frame. Here
|
||||
|
||||
Reference in New Issue
Block a user