Files
Maxed-Out-99-ComfyUI-MaxedOut/web/mxd_utils_menu.js
T
Maxed-Out-99 3ca3859588 Remove BOMs and bump version to 1.8.3
Strip stray BOM/hidden characters from multiple Python and web source files to normalize file encoding and avoid lint/parse issues. Also bump package version from 1.8.2 to 1.8.3 in pyproject.toml. No functional code changes were made.
2026-02-22 09:11:58 -08:00

18 lines
533 B
JavaScript

import { app } from "../../scripts/app.js";
import { mxdApi } from "./mxd_api.js";
export async function showLoraChooser(event, callback, parentMenu, loras) {
const canvas = app.canvas;
if (!loras) {
loras = ["None", ...(await mxdApi.getLoras().then((items) => items.map((l) => l.file)) )];
}
new LiteGraph.ContextMenu(loras, {
event,
parentMenu: parentMenu != null ? parentMenu : undefined,
title: "Choose a LoRA",
scale: Math.max(1, canvas.ds?.scale ?? 1),
className: "dark",
callback,
});
}