mirror of
https://github.com/Comfy-Org/ComfyUI-Manager.git
synced 2026-05-10 00:52:32 +08:00
Fix deprecated ui.js import in comfyui-share-youml.js
This commit is contained in:
parent
e75889b445
commit
8f1b4ea47b
@ -1,8 +1,15 @@
|
||||
import {app} from "../../scripts/app.js";
|
||||
import {api} from "../../scripts/api.js";
|
||||
import {ComfyDialog, $el} from "../../scripts/ui.js";
|
||||
import { customAlert } from "./common.js";
|
||||
|
||||
// === SHIM FOR NEW COMFYUI (removes ui.js warning) ===
|
||||
let $el, ComfyDialog;
|
||||
if (window?.comfyAPI?.ui) {
|
||||
({ $el, ComfyDialog } = window.comfyAPI.ui);
|
||||
} else {
|
||||
({ $el, ComfyDialog } = await import("../../scripts/ui.js"));
|
||||
}
|
||||
|
||||
const BASE_URL = "https://youml.com";
|
||||
//const BASE_URL = "http://localhost:3000";
|
||||
const DEFAULT_HOMEPAGE_URL = `${BASE_URL}/?from=comfyui`;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user