Migrate deprecated legacy /scripts/ui.js imports to window.comfyAPI.ui
ComfyUI's frontend build shims /scripts/ui.js and warns '[ComfyUI Deprecated] Importing from scripts/ui.js is deprecated'. Replace the deep relative import with the documented window.comfyAPI.ui surface in autocomplete.js, utils.js, lightbox.js and modelInfoDialog.js. No behavior change; \ and ComfyDialog are exported as const bindings in ui.ts and exposed on window.comfyAPI.ui.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { $el } from "../../../../scripts/ui.js";
|
||||
const { $el } = window.comfyAPI.ui;
|
||||
|
||||
export function addStylesheet(url) {
|
||||
if (url.endsWith(".js")) {
|
||||
|
||||
Reference in New Issue
Block a user