mirror of
https://github.com/willmiao/ComfyUI-Lora-Manager.git
synced 2026-03-26 07:35:44 -03:00
fix: correct extension name format and update initialization method in usage stats
This commit is contained in:
@@ -4,9 +4,9 @@ import { api } from "../../scripts/api.js";
|
|||||||
|
|
||||||
// Register the extension
|
// Register the extension
|
||||||
app.registerExtension({
|
app.registerExtension({
|
||||||
name: "Lora-Manager.UsageStats",
|
name: "LoraManager.UsageStats",
|
||||||
|
|
||||||
init() {
|
setup() {
|
||||||
// Listen for successful executions
|
// Listen for successful executions
|
||||||
api.addEventListener("execution_success", ({ detail }) => {
|
api.addEventListener("execution_success", ({ detail }) => {
|
||||||
if (detail && detail.prompt_id) {
|
if (detail && detail.prompt_id) {
|
||||||
|
|||||||
Reference in New Issue
Block a user