[CodeHealth] Remove remaining uses of global app var (#3868)

This commit is contained in:
filtered
2025-05-14 02:01:02 +10:00
committed by GitHub
parent a17fb04f83
commit 58906fa821
7 changed files with 19 additions and 10 deletions

View File

@@ -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

View File

@@ -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