Rename node to JSONDynamicLoader to avoid collision with JSON Manager

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-02-23 19:36:28 +01:00
parent 79157f4289
commit c909f854f4
2 changed files with 5 additions and 5 deletions

View File

@@ -79,7 +79,7 @@ if PromptServer is not None:
return web.json_response({"keys": keys, "types": types})
class JSONLoaderDynamic:
class JSONDynamicLoader:
@classmethod
def INPUT_TYPES(s):
return {
@@ -124,9 +124,9 @@ class JSONLoaderDynamic:
NODE_CLASS_MAPPINGS = {
"JSONLoaderDynamic": JSONLoaderDynamic,
"JSONDynamicLoader": JSONDynamicLoader,
}
NODE_DISPLAY_NAME_MAPPINGS = {
"JSONLoaderDynamic": "JSON Loader (Dynamic)",
"JSONDynamicLoader": "JSON Dynamic Loader",
}

View File

@@ -5,7 +5,7 @@ app.registerExtension({
name: "json.dynamic.loader",
async beforeRegisterNodeDef(nodeType, nodeData, app) {
if (nodeData.name !== "JSONLoaderDynamic") return;
if (nodeData.name !== "JSONDynamicLoader") return;
const origOnNodeCreated = nodeType.prototype.onNodeCreated;
nodeType.prototype.onNodeCreated = function () {
@@ -96,7 +96,7 @@ app.registerExtension({
this.setSize(this.computeSize());
app.graph.setDirtyCanvas(true, true);
} catch (e) {
console.error("[JSONLoaderDynamic] Refresh failed:", e);
console.error("[JSONDynamicLoader] Refresh failed:", e);
}
};