Fix the problem that the CSS reference address may be wrong.
This commit is contained in:
@@ -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