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:
1 parent
79157f4289
commit
c909f854f4
2 files changed
+5
-5
No files matched your search
+2
-2
@@ -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);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in new issue
Block a user