15 lines
433 B
JavaScript
15 lines
433 B
JavaScript
import { app } from '../../scripts/app.js';
|
|
import { attachGuideMasterPanel } from './ui/panel.js';
|
|
|
|
app.registerExtension({
|
|
name: 'Majoor.H3GuideMaster',
|
|
async nodeCreated(node) {
|
|
if (node.comfyClass !== 'MajoorH3GuideMaster') return;
|
|
attachGuideMasterPanel(node);
|
|
},
|
|
async loadedGraphNode(node) {
|
|
if (node.comfyClass !== 'MajoorH3GuideMaster') return;
|
|
node.__majoorH3GuideMasterPanel?.refresh?.();
|
|
},
|
|
});
|