Fix the problem that the CSS reference address may be wrong.
This commit is contained in:
@@ -1426,9 +1426,9 @@ class DirectoryDropdown {
|
|||||||
const selection = options[iSelection];
|
const selection = options[iSelection];
|
||||||
if (selection !== undefined && selection !== null) {
|
if (selection !== undefined && selection !== null) {
|
||||||
DirectoryDropdown.selectionToInput(
|
DirectoryDropdown.selectionToInput(
|
||||||
input,
|
input,
|
||||||
selection,
|
selection,
|
||||||
modelData.searchSeparator,
|
modelData.searchSeparator,
|
||||||
DROPDOWN_DIRECTORY_SELECTION_KEY_CLASS
|
DROPDOWN_DIRECTORY_SELECTION_KEY_CLASS
|
||||||
);
|
);
|
||||||
const path = this.#updateOptions();
|
const path = this.#updateOptions();
|
||||||
@@ -5514,10 +5514,12 @@ app.registerExtension({
|
|||||||
name: 'Comfy.ModelManager',
|
name: 'Comfy.ModelManager',
|
||||||
init() {},
|
init() {},
|
||||||
async setup() {
|
async setup() {
|
||||||
|
const cssFileUrl = new URL(import.meta.url).pathname.replace('.js', '.css');
|
||||||
|
|
||||||
$el('link', {
|
$el('link', {
|
||||||
parent: document.head,
|
parent: document.head,
|
||||||
rel: 'stylesheet',
|
rel: 'stylesheet',
|
||||||
href: './extensions/ComfyUI-Model-Manager/model-manager.css',
|
href: cssFileUrl,
|
||||||
});
|
});
|
||||||
|
|
||||||
app.ui?.menuContainer?.appendChild(
|
app.ui?.menuContainer?.appendChild(
|
||||||
|
|||||||
Reference in New Issue
Block a user