From 83095a51ba1aa4b30d411e8b56c5c4484eaf35a3 Mon Sep 17 00:00:00 2001 From: kijai <40791699+kijai@users.noreply.github.com> Date: Wed, 26 Jun 2024 00:16:36 +0300 Subject: [PATCH] fix --- web/js/jsnodes.js | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/web/js/jsnodes.js b/web/js/jsnodes.js index 1770745..911464a 100644 --- a/web/js/jsnodes.js +++ b/web/js/jsnodes.js @@ -80,9 +80,9 @@ app.registerExtension({ const onGetMaskSizeConnectInput = nodeType.prototype.onConnectInput; nodeType.prototype.onConnectInput = function (targetSlot, type, output, originNode, originSlot) { const v = onGetMaskSizeConnectInput?.(this, arguments); - targetSlot.outputs[1]["name"] = "width" - targetSlot.outputs[2]["name"] = "height" - targetSlot.outputs[3]["name"] = "count" + this.outputs[1]["name"] = "width" + this.outputs[2]["name"] = "height" + this.outputs[3]["name"] = "count" return v; } const onGetMaskSizeExecuted = nodeType.prototype.onExecuted; @@ -100,9 +100,9 @@ app.registerExtension({ const onGetImageSizeConnectInput = nodeType.prototype.onConnectInput; nodeType.prototype.onConnectInput = function (targetSlot, type, output, originNode, originSlot) { const v = onGetImageSizeConnectInput?.(this, arguments); - targetSlot.outputs[1]["name"] = "width" - targetSlot.outputs[2]["name"] = "height" - targetSlot.outputs[3]["name"] = "count" + this.outputs[1]["name"] = "width" + this.outputs[2]["name"] = "height" + this.outputs[3]["name"] = "count" return v; } const onGetImageSizeExecuted = nodeType.prototype.onExecuted; @@ -120,7 +120,7 @@ app.registerExtension({ const onPreviewAnimationConnectInput = nodeType.prototype.onConnectInput; nodeType.prototype.onConnectInput = function (targetSlot, type, output, originNode, originSlot) { const v = onPreviewAnimationConnectInput?.(this, arguments); - targetSlot.title = "Preview Animation" + this.title = "Preview Animation" return v; } const onPreviewAnimationExecuted = nodeType.prototype.onExecuted; @@ -136,8 +136,8 @@ app.registerExtension({ const onVRAM_DebugConnectInput = nodeType.prototype.onConnectInput; nodeType.prototype.onConnectInput = function (targetSlot, type, output, originNode, originSlot) { const v = onVRAM_DebugConnectInput?.(this, arguments); - targetSlot.outputs[3]["name"] = "freemem_before" - targetSlot.outputs[4]["name"] = "freemem_after" + this.outputs[3]["name"] = "freemem_before" + this.outputs[4]["name"] = "freemem_after" return v; } const onVRAM_DebugExecuted = nodeType.prototype.onExecuted;