From 5a1889db749736ee1d09682265df53d27fdbba44 Mon Sep 17 00:00:00 2001 From: bruefire Date: Sat, 9 Dec 2023 19:21:19 +0900 Subject: [PATCH] fixed the logic to prepare ref of head image from workflow on initialization. --- js/main.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/js/main.js b/js/main.js index 1f2c7b6..9ee2efa 100644 --- a/js/main.js +++ b/js/main.js @@ -92,9 +92,9 @@ app.registerExtension({ // Add our own callback to the combo widget to render an image when it changes idWidget.callback = function () { - let imageData = idWidget.value.split(":"); - let dirIds = imageData[imageData.length - 1].split("/"); - showImage(dirIds[0] + "/" + imageData[0]); + // let imageData = idWidget.value.split(":"); + // let dirIds = imageData[imageData.length - 1].split("/"); + // showImage("extVideoFrame" + dirIds[0] + "/" + imageData[0]); }; // On load if we have a value then render the image @@ -102,7 +102,7 @@ app.registerExtension({ if (idWidget.value) { let imageData = idWidget.value.split(":"); let dirIds = imageData[imageData.length - 1].split("/"); - showImage(dirIds[0] + "/" + imageData[0]); + showImage("extVideoFrame" + dirIds[0] + "/" + imageData[0]); } });