mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-02 14:27:40 +00:00
chore: remove debug console.log
This commit is contained in:
committed by
Alexander Brown
parent
f1cb6dad20
commit
40dd82ca41
@@ -22,42 +22,12 @@ export async function dispatchComfyExtensions(options: {
|
||||
const { configs, entrance } = options
|
||||
const extensions = formatExtensions(entrance, configs)
|
||||
for (const extension of Object.values(extensions)) {
|
||||
// if (shouldLoadExtension(extLoadContext, extension.config)) {
|
||||
// const module = await extension.entry()
|
||||
// console.log('✅ extension', extension.name, 'loaded', extension, module)
|
||||
// } else {
|
||||
// console.log('❌ extension', extension.name, 'disabled', extension.config)
|
||||
// }
|
||||
const activationEvents = normalizationActivationEvents(
|
||||
extLoadContext,
|
||||
extension.config
|
||||
)
|
||||
if (!activationEvents.length) {
|
||||
console.log(
|
||||
'❌ extension',
|
||||
extension.name,
|
||||
'has no activation events',
|
||||
extension.config
|
||||
)
|
||||
} else {
|
||||
console.log(
|
||||
'🧶 extension',
|
||||
extension.name,
|
||||
'has activation events:',
|
||||
activationEvents
|
||||
)
|
||||
}
|
||||
activationEvents.forEach((event) =>
|
||||
onceExtImportEvent(event, async ({ event }) => {
|
||||
console.log(
|
||||
'✅ extension',
|
||||
extension.name,
|
||||
'loaded by',
|
||||
event,
|
||||
extension
|
||||
)
|
||||
await extension.entry()
|
||||
})
|
||||
onceExtImportEvent(event, async () => void (await extension.entry()))
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -31,9 +31,9 @@ export function formatExtensions(
|
||||
}
|
||||
|
||||
const config = configs[`${path}/comfy.ext.config.ts`]
|
||||
if (!config) {
|
||||
console.warn(`⚠️ Extension`, path, `has no config`)
|
||||
}
|
||||
// if (!config) {
|
||||
// console.warn(`Extension`, path, `has no config`)
|
||||
// }
|
||||
pkgs[name] = { name, path, config, entry }
|
||||
}
|
||||
return pkgs
|
||||
|
||||
Reference in New Issue
Block a user