mirror of
https://git.datalinker.icu/comfyanonymous/ComfyUI
synced 2026-11-17 18:37:07 +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
|
||||
|
||||
function getHoveredWidget() {
|
||||
if (!app) {
|
||||
return;
|
||||
}
|
||||
|
||||
const node = app.canvas.node_over;
|
||||
if (!node.widgets) return;
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user