mirror of
https://git.datalinker.icu/comfyanonymous/ComfyUI
synced 2026-11-17 17:07:06 +08:00
Prevent potential crash
This commit is contained in:
parent
de17d9953c
commit
7fc763ab44
@ -4,6 +4,10 @@ import { $el } from "../../scripts/ui.js";
|
|||||||
// Adds support for tooltips
|
// Adds support for tooltips
|
||||||
|
|
||||||
function getHoveredWidget() {
|
function getHoveredWidget() {
|
||||||
|
if (!app) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
const node = app.canvas.node_over;
|
const node = app.canvas.node_over;
|
||||||
if (!node.widgets) return;
|
if (!node.widgets) return;
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user